DOCKER删除不需要的资源

docker system prune [OPTIONS]

--all , -a      Remove all unused images not just dangling ones
--filter        Provide filter values (e.g. ‘label==')
--force , -f    Do not prompt for confirmation
--volumes       Prune volumes

查看磁盘使用情况

docker system df

删除未被正在运行容器使用的卷

docker system prune -a --volumes

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注