Skip to content

更多命令

帮助

bash
docker help
docker help <command>

登录

bash
docker login
docker logout

系统信息

bash
docker version
docker info
docker system df
docker system events

清理

一次性清理未使用资源(含未挂载 volume、未使用镜像):

bash
docker system prune --volumes -a -f

等价拆分:

bash
docker container prune -f
docker image prune -a -f
docker network prune -f
docker volume prune -f
docker builder prune -f

基于 MIT 许可发布