docker: Error response from daemon: Conflict. The container name

阿里云国内75折 回扣 微信号:monov8
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6


问题

docker: Error response from daemon: Conflict. The container name "/xiangheGuosanguan20200428" is already in use by container "27dfa1fc17bc3eb00f208abdc9d10c6bc2066ba1929a                                                                b64cf456aa8802aa706e".

原因

docker: Error response from daemon: Conflict. The container name_重新运行

解决

命令1

查看所有运行的容器

docker ps

找到你容器对应的ID

命令2

docker rm 27dfa1fc17bc

删除时发现报错

Error response from daemon: You cannot remove a running container 27dfa1fc17bc3eb00f208abdc9d10c6bc2066ba1929ab64cf456aa8802aa706e. Stop the container before attempting removal or force remove

docker: Error response from daemon: Conflict. The container name_重新运行_02

命令3

停止你所对应的程序

docker stop xiangheGuosanguan20200428

docker: Error response from daemon: Conflict. The container name_重新运行_03

命令4

重新运行

docker run -d --name xiangheGuosanguan20200428 -p 8429:8383 -e context-path=xiangheGuosanguan20200428 -e auth-Url= -e httpName=https xianghe_guosanguan                         20200309:2.0

docker: Error response from daemon: Conflict. The container name_重新运行_04


如果还是报错看下一篇链接,不报错就部署成功了

docker: Error response from daemon: Conflict. The container name "/xiangheGuosanguan20200428" is already in use by container "27dfa1fc17bc3eb00f208abdc9d10c6bc2066ba1929ab64cf456aa8802aa706e". You have to remo                         ve (or rename) that container to be able to reuse that name.
See 'docker run --help'.

点我继续解决


阿里云国内75折 回扣 微信号:monov8
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6
标签: Docker