Skip to content

Instantly share code, notes, and snippets.

@clojj
Last active June 21, 2019 13:10
Show Gist options
  • Save clojj/5f06182ec8108ca7bf81b7b9198a113c to your computer and use it in GitHub Desktop.
Save clojj/5f06182ec8108ca7bf81b7b9198a113c to your computer and use it in GitHub Desktop.

enter a container's shell

docker ps -> ID

docker exec -it 42 bash

copy a file to container

docker ps -> NAMES

docker cp filename42 /container_name:/path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment