docker: Error response from daemon: Conflict. The container name is already in use by container You

问题:docker启动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 reuse that name.

解决办法:

在此之前已经启动了相同名字的docker容器,The container name is already in use by container
You have to remove (or rename) that container to be able to reuse that name

删除这个container

想要启动一个新的容器,可以删除已经存在的容器

docker rm YOUR_CONTAINER_NAME

重新启动这个container

也可以重新启动已经存在的容器

docker start YOUR_CONTAINER_NAME

猜你喜欢

转载自blog.csdn.net/m0_37450089/article/details/131497584