Docker 删除未使用的数据

如果需要 Docker 删除未使用的数据,可以运行下列命令:

docker system prune

运行后会出现警告

WARNING! This will remove:
  - all stopped containers
  - all networks 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. How to remove <none> images after building - DockerEngine - Docker Community Forums
  2. docker system prune - Docker Documentation
Built with Hugo
主题 StackJimmy 设计