Skip to content

Instantly share code, notes, and snippets.

@Sushant
Last active January 18, 2016 20:08
Show Gist options
  • Save Sushant/bcf41436182d58eb1267 to your computer and use it in GitHub Desktop.
Save Sushant/bcf41436182d58eb1267 to your computer and use it in GitHub Desktop.
Docker commands/tricks

Remove all stopped containers

docker rm $(docker ps -aq)

docker inspect <image> docker diff <image> docker history <image>

docker exec -it <container_name>

You should attach to the container using the --sig-proxy=false option like this:

docker attach --sig-proxy=false NAME ###Then you can use CTRL+Cto exit without stopping the container itself.

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