Re:Learn Docker by building a Microservice
by roxmon on Wednesday June 01, 2016 @09:45AM
(#11814268)
I run into this pretty frequently with Docker on Mac OS X. Passing the `--rm` flag helps, but for cleaning up old/unused containers, I usually set these two commands on a cron:
[ Parent
| on HN ]
Re:Learn Docker by building a Microservice
by xahrepap on Wednesday June 01, 2016 @10:45AM
(#11814710)
You can also do this:
docker rmi $(docker images -q -f dangling=true
You might consider doing the same with volumes: docker volume rm $(docker volume ls -q -f dangling=true)
But be careful with the volume one. I'd read the documentation around volumes first and see if you're deleting what you want to. :)