How to clean up Docker

前端 未结 5 777
旧巷少年郎
旧巷少年郎 2021-01-31 08:19

I\'ve just noticed that I ran out of disk space on my laptop. Quite a lot is used by Docker as found by mate-disk-usage-analyzer:

The docker/

5条回答
  •  无人及你
    2021-01-31 08:27

    I had same issue. In my case solution was:

    1. view all images:
      docker images

    2. remove old unused images:
      docker rmi IMAGE_ID

    3. possibly you will need to prune stopped containers:
      docker container prune

    p.s. docker --help is good solution :)

提交回复
热议问题