fatal: [192.168.1.232]: FAILED! => {"changed": true, "cmd": "docker-compose -f /home/work/hawkseye/m_mq_backend/docker-compose.yml up -d", "delta": "0:00:04.647923", "end": "2019-11-18 16:00:09.106869", "msg": "non-zero return code", "rc": 1, "start": "2019-11-18 16:00:04.458946", "stderr": "Creating network \"mmqbackend_default\" with the default driver\nCreating hawkseye-m-mq-backend\n\nERROR: for backend  Cannot create container for service backend: Conflict. The container name \"/hawkseye-m-mq-backend\" is already in use by container \"dd5a3c30755b996d5fc2fa96c514ee1e80cdd3b319569b3acc475e8124d0d669\". You have to remove (or rename) that container to be able to reuse that name.\nEncountered errors while bringing up the project.", "stderr_lines": ["Creating network \"mmqbackend_default\" with the default driver", "Creating hawkseye-m-mq-backend", "", "ERROR: for backend  Cannot create container for service backend: Conflict. The container name \"/hawkseye-m-mq-backend\" is already in use by container \"dd5a3c30755b996d5fc2fa96c514ee1e80cdd3b319569b3acc475e8124d0d669\". You have to remove (or rename) that container to be able to reuse that name.", "Encountered errors while bringing up the project."], "stdout": "", "stdout_lines": []}
	to retry, use: --limit @/opt/jenkins/playbooks/hawkseye/m_mq_backend_test/m-mq-test.retry

重要信息:

Creating hawkseye-m-mq-backend", "", "
ERROR: for backend  Cannot create container for service backend: Conflict. 
The container name \"/hawkseye-m-mq-backend\" is already in use by container \"dd5a3c30755b996d5fc2fa96c514ee1e80cdd3b319569b3acc475e8124d0d669\".
 You have to remove (or rename) that container to be able to reuse that name

然后执行docker rm命令

docker rm dd5a3c30755b
创建新 Docker 容器时出现“The container name "/ xxx " is already in use by container xxx ...”问题的解决办法 列出本地镜像: 1.# docker images 2.创建新的容器: # docker run -it -d -p 8080:8080 --name mytomcat hub.c.163.com/library/t... -t 表示容器启动后会进入其命令行。加入这两个参数后,容器创建就能登录进去。即 分配一个伪终端。 –name 为创建的容器命名 -v 表示目录映射关系(前者是宿主机目录,后者是映射到宿主机上的目录,即 宿主机目录:容器... 创建新 Docker 容器时出现“The container name “/ xxx ” is already in use by container xxx …”问题的解决办法 列出本地镜像: 1.# docker images 2.创建新的容器: docker run -it -d -p 8080:8080 --name mytomcat hub.c.163.com/library/tomcat:latest 上面创建新容器出现了错误,提示:容器名被占用,须移除或重命名后才能使用这个容器名。 【解决办法】 因为换了ip导致虚拟机很多无法使用,这不遇到数据库连接不上报错: Navicat连接mysql数据库报错2003 - Can’t connect to MySQL server on ‘...’ (60 "Operation timed out) 简单百度了一下没解决问题,懒得折腾直接重装 重装mysql过程遇到个问题:The container name “/mysql” is already in use by container 下面贴出解决办法 2. 解决方式 1.输入 docker 问题现象: docker : Error response from daemon: Conflict. The container name is already in use by container You have to remove (or rename) that container to be able to re use that name. 解决办法: 方法1:直接删除这个 container docker rm YOUR_ CONTAINER _NAME 方法2:重新启动这个 container D:\ Use rs\chengyq> docker run -d --name clickho use -server --ulimit nofile=262144:262144 -p 8123:8123 -v //D/clickho use /config.xml:/etc/clickho use -server/config.xml --volume=//D/clickho use :/var/lib/clickho use yandex/clickho use -server docker : Error res