docker 清除不用的容器数据

1. 提示错误

--gpus all

docker: Error response from daemon: Conflict. The container name "abc" is already in use by container "89b96853dc4d973ec932123550c17bcb77954531d0a596a3abc92dab0c621cee". You have to remove (or rename) that container to be able to reuse that name.

See 'docker run --help'.

2. 解决方法

$ docker system prune

3. 命令帮助

Management Commands:

builder Manage builds

buildx* Docker Buildx (Docker Inc., v0.11.2)

compose* Docker Compose (Docker Inc., v2.21.0)

container Manage containers

context Manage contexts

image Manage images

manifest Manage Docker image manifests and manifest lists

network Manage networks

plugin Manage plugins

scan* Docker Scan (Docker Inc., v0.23.0)

system Manage Docker

trust Manage trust on Docker images

volume Manage volumes

Usage: docker system COMMAND

Manage Docker

Commands:

df Show docker disk usage

events Get real time events from the server

info Display system-wide information

prune Remove unused data

相关推荐
GreenMountainEcho5 小时前
Kubernetes 入门篇之 Node 安装与部署
云原生·容器·kubernetes
zyk_5206 小时前
Docker desktop如何汉化
运维·docker·容器
韭菜盖饭6 小时前
解决Docker端口映射后外网无法访问的问题
运维·docker·容器
jingjingjing11116 小时前
笔记:docker安装(ubuntu 20.04)
笔记·docker·容器
qq_339282238 小时前
docker之network
运维·docker·容器
alden_ygq8 小时前
k8s statefulset pod重启顺序
云原生·容器·kubernetes
愿你天黑有灯下雨有伞9 小时前
Docker 安装 Elasticsearch 教程
运维·elasticsearch·docker
@郭小茶10 小时前
windows部署docker
windows·docker·容器
云上艺旅11 小时前
K8S学习之基础七十二:Ingress基于Https代理pod
学习·云原生·容器·https·kubernetes
XAL111 小时前
Docker的备份与恢复
运维·docker·容器