Docker容器名称冲突冲突,但该容器不存在

时间:2016-04-02 14:50:38

标签: docker coreos

我正在尝试运行一个我以前用过的名字的容器,但它说Conflict. The name "/szeremi-blog" is already in use by container e3424e6548302125f51ace8b6777190f02bb9b32606dba4471ecc64796010413. You have to remove (or rename) that container to be able to reuse that name..即使该容器不存在,甚至没有停止!

我正在使用Docker版本1.10.3

哦顺便说一句,我确实遇到了关于磁盘空间完全填满的问题。也许某些需要的数据无法写入导致此问题?

core@www ~/szeremi-nginx $ /usr/bin/docker run --rm --name szeremi-blog     -e VIRTUAL_HOST=blog.szeremi.org     -v /mnt/szeremi-blog/sites:/var/www/html/sites     -v /mnt/szeremi-blog/uploads:/var/www/uploads     --link mysql     ${CONTAINER_NAME}:8.0
docker: Error response from daemon: Conflict. The name "/szeremi-blog" is already in use by container e3424e6548302125f51ace8b6777190f02bb9b32606dba4471ecc64796010413. You have to remove (or rename) that container to be able to reuse that name..
core@www ~/szeremi-nginx $ docker rm e3424e6548302125f51ace8b6777190f02bb9b32606dba4471ecc64796010413
Failed to remove container (e3424e6548302125f51ace8b6777190f02bb9b32606dba4471ecc64796010413): Error response from daemon: No such container: e3424e6548302125f51ace8b6777190f02bb9b32606dba4471ecc64796010413
core@www ~/szeremi-nginx $ docker ps -a
CONTAINER ID        IMAGE                         COMMAND                  CREATED             STATUS              PORTS                                      NAMES
78bb85b82e16        mysql:5.7                     "/entrypoint.sh mysql"   2 hours ago         Up 2 hours          3306/tcp                                   mysql
e2335f1ab0b5        amcsi/szeremi                 "npm run start"          2 hours ago         Up 2 hours          0.0.0.0:10082->8080/tcp                    szeremi
bd22591d62ae        jwilder/nginx-proxy           "/app/docker-entrypoi"   4 days ago          Up 4 days           0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   szeremi-nginx
c36ce4003505        centurylink/watchtower        "/watchtower"            4 days ago          Up 4 days                                                      watchtower
7cedd4eb3d6c        sameersbn/redmine:3.2.0-2     "/sbin/entrypoint.sh "   4 weeks ago         Up 4 days           443/tcp, 0.0.0.0:10083->80/tcp             dockerredmine_redmine_1
9305e9e6b3a2        sameersbn/postgresql:9.4-11   "/sbin/entrypoint.sh"    4 weeks ago         Up 4 days           5432/tcp                                   dockerredmine_postgresql_1
e00edc4f605e        holmes/dockerpuller           "--help"                 8 weeks ago         Created                                                        loving_bartik
core@www ~/szeremi-nginx $ docker -v
Docker version 1.10.3, build 8acee1b

0 个答案:

没有答案