docker 容器名称已存在

The container name "/minio" is already in use by container "7483c791c039afd7da17a8e624765e7f2eff602bde3b53b11270e31e9f6a7b05"

查看

docker ps -a
# docker ps -a
CONTAINER ID   IMAGE         COMMAND                  CREATED          STATUS                     PORTS     NAMES
7483c791c039   minio/minio   "/usr/bin/docker-ent…"   25 minutes ago   Exited (0) 8 minutes ago             minio

删除(运行中的无法删除)

# docker rm minio
Error response from daemon: You cannot remove a running container 2d04ca31858620907dc31b3bfa877d0482f1a68aa63c2d46907b3c2596ec60dd. Stop the container before attempting removal or force remove

# docker stop minio
minio

下面两种方式都可以删除

# docker rm minio
# docker rm  7483c791c039
posted @ 2021-09-15 16:01  TBHacker  阅读(810)  评论(0编辑  收藏  举报