Cleanup disk space occupied by Docker images

后端 未结 3 1833
执笔经年
执笔经年 2021-02-07 04:54

I am running docker on windows 10.

I had a couple of images stored in my machine. The total size of these images accumulated to around ~10GB. I have deleted these images

3条回答
  •  臣服心动
    2021-02-07 05:29

    First try to run:

    docker system prune

    It will remove:

    • all stopped containers
    • all volumes not used by at least one container
    • all networks not used by at least one container
    • all dangling images

    If that's not enough, do:

    docker system prune -a

    It will remove:

    • all stopped containers
    • all volumes not used by at least one container
    • all networks not used by at least one container
    • all images without at least one container associated to

提交回复
热议问题