Last active
September 19, 2019 04:00
-
-
Save HiCraigChen/cfd74009f274f8271c20b1b879d1052b to your computer and use it in GitHub Desktop.
copy files from docker
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
# Open another terminal to find your running container id | |
docker ps | |
# CONTAINER ID IMAGE COMMAND... | |
#<CONTAINER ID> py36lambda "bash" ... | |
# Copy the files from container to local | |
docker cp <CONTAINER_ID>:/path/to/file/in/docker /path/to/local/directory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment