Joined December 2014
·

Vincent Smith

USA
·
·

Posted to Docker: remove all Exited containers over 1 year ago

@miraculixx

I don't think --all can be used with -f. Usually --all would display stopped/exited containers, but with -f status=exited, it already returns those. Please correct me if I'm wrong.

Posted to Docker: remove all Exited containers over 1 year ago

docker rm $(docker ps -q -f status=exited)

Posted to Docker image creation tip over 1 year ago

As a Docker noob, this would have saved me a big headache! Hope others see this before they make the same mistake as I did. In general, to all the most time consuming steps in your Dockerfile first. Little things like ENV variables can wait till later (in most cases)

Achievements
1 Karma
0 Total ProTip Views
Interests & Skills