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
?
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!