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

相关推荐
张青贤1 小时前
K8s中的containerPort与port、targetPort、nodePort的关系:
云原生·容器·kubernetes
云攀登者-望正茂3 小时前
AKS 支持 Kata Container容器沙盒 -预览阶段
容器·azure
撸码到无法自拔5 小时前
docker常见命令
java·spring cloud·docker·容器·eureka
hi,编程哥10 小时前
Docker、ECS 与 K8s 网段冲突:解决跨服务通信中的路由问题
docker·容器·kubernetes
How_doyou_do10 小时前
项目全栈实战-基于智能体、工作流、API模块化Docker集成的创业分析平台
运维·docker·容器
是垚不是土14 小时前
探秘高可用负载均衡集群:企业网络架构的稳固基石
运维·服务器·网络·云原生·容器·架构·负载均衡
杰克逊的日记14 小时前
大规模k8s集群怎么规划
云原生·容器·kubernetes
luck_me514 小时前
K8S已经成为了Ai应用运行的平台工具
人工智能·容器·kubernetes
xbd_zc14 小时前
【Jenkins简单自动化部署案例:基于Docker和Harbor的自动化部署流程记录】
docker·自动化·jenkins·harbor
matrixlzp15 小时前
K8S Ingress、IngressController 快速开始
云原生·容器·kubernetes