docker 删除缓存

ENV

Fedora release 29 (Twenty Nine) x86_64
Docker version 19.03.5, build 633a0ea838

docker 删除缓存

docker system prune --volumes
示例

[user@localhost ~]$ sudo docker system prune --volumes
WARNING! This will remove:
  - all stopped containers
  - all networks not used by at least one container
  - all volumes not used by at least one container
  - all dangling images
  - all dangling build cache
  
Are you sure you want to continue? [y/N] y
...

[1] https://linuxize.com/post/how-to-remove-docker-images-containers-volumes-and-networks/


版权声明:本文为ppdouble原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。