Docker Protips™

1 · Carlos Alexandro Becker · May 10, 2015, midnight
Like my old post on git, this is somewhat a collection of useful Docker commands/tricks/whatever. Feel free to leave yours in the comments! Stop all containers $ docker stop $(docker ps -qa) ps -qa will output the CONTAINER_ID of all containers; stop will get ps -qa as input and stop all of them. You can also kill all running containers instead of stop them. Delete all stopped containers $ docker rm $(docker ps -qa -f="exited=0") ps -qa will output the CONTAINER_ID of all containers; -f="exit...