Skip to content

Instantly share code, notes, and snippets.

@HiCraigChen
Last active September 19, 2019 04:00
Show Gist options
  • Save HiCraigChen/cfd74009f274f8271c20b1b879d1052b to your computer and use it in GitHub Desktop.
Save HiCraigChen/cfd74009f274f8271c20b1b879d1052b to your computer and use it in GitHub Desktop.
copy files from docker
# 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