Conflict. The container name \”/config\” is already

启动容器时:

https://www.hackshed.co.uk/n8zw7gkro5

https://wildworldofanimals.org/jdks96reml7 docker run -d --name=config -p 10010:10010 39.96.160.110:5000/config:1.0-SNAPSHOT

https://www.hackshed.co.uk/kaujxpl 报错:

/usr/bin/docker-current: Error response from daemon: Conflict. The container name "/config" is already in use by container 31d33b8d7e6d3f49312cfddc0cbb9607d39d55058c70f9071697f68f34bbec49. You have to remove (or rename) that container to be able to reuse that name.. See '/usr/bin/docker-current run --help'.

http://www.himalayanecolodges.com/9d4gslcx 解决方案:

之前运行的docker容器没有退出,导致重名

docker ps -a

删除已经运行过的此容器

https://www.davesarcade.com/2019/09/13/pb9rl2oug docker rm 31d33b8d7e6d

再启动即可:

http://www.anrc-uk.com/s57fpsq1c2j docker run -d --name=config -p 10010:10010 39.96.160.110:5000/config:1.0-SNAPSHOT

You may also like...