Created
August 30, 2018 02:20
-
-
Save markshust/15efb29aa5eebf8adae402af18b2e674 to your computer and use it in GitHub Desktop.
copy folder from docker compose (named phpfpm) to local host
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| [ -z "$1" ] && echo "Please specify a folder to copy (ex. vendor)" && exit | |
| docker cp $(docker-compose ps|grep phpfpm|awk '{print $1}'):/var/www/html/$1 src/ |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
usage is
./copyfolder.sh vendorto copy vendor folder from /var/www/html/vendor on the container to src/vendor on the host.