docker: Error response from daemon: Conflict.container to be able to reuse that name

启动容器时报错:
docker: Error response from daemon: Conflict. The name “test1” is already in use by container “02bbac06”. You have to delete (or rename) that container to be able to reuse that name.
在这里插入图片描述
是因为启动容器的名字已经存在,必须删除或者修改启动的容器名字。可以删除重复名字的容器。
docker rm 02b (CONTAINER ID) 或者docker kill 02b

猜你喜欢

转载自blog.csdn.net/weixin_45455015/article/details/107454566