Reno, NV    +1 (800)0 621-0871

Go back

Development

Learning Docker: How to Remove Unused Containers and Images

  |  May 26, 2014

Context

Your hard drive is full of containers and images from previous Docker builds.

I tried using docker rmi only to realise it will fail if the image is still used by a container.

Solution

Note: I’ve put the solution in a gist because of formatting issues with this blog.

See Also

Remove untagged docker images