Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Clean docker images:

  docker rmi $(docker images -f dangling=true -q --no-trunc)


Dangling images are just those that are not tagged. That happens if you create a new image and tag it with an already existing tag (e.g. latest).

This command won't help you clean up disk space if you build/pull images each with their own unique tags.


Docker 1.13 is shipping with cleanup commands built in.


Just saw you comment and googled for details: https://github.com/docker/docker/pull/26108




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: