How to remove old and unused Docker images

前端 未结 26 1788
北恋
北恋 2020-11-22 11:28

When running Docker for a long time, there are a lot of images in system. How can I remove all unused Docker images at once safety to free up the storage?

In additio

26条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-22 12:21

    There is sparrow plugin docker-remove-dangling-images you can use to clean up stopped containers and unused (dangling) images:

    $ sparrow plg run docker-remove-dangling-images

    It works both for Linux and Windows OS.

提交回复
热议问题