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