docker: Error response from daemon: Conflict. The container name "/mysql" is already in use by conta

docker: Error response from daemon: Conflict. The container name “/mysql” is already in use by container “27e9834dce87b6cac674945d7917ce2f9c52537569420275fd05b3e5e6460070”. You have to remove (or rename) that container to be able to reuse that name.
出现上述的错误,是因为docker容器里面已经存在,如果不需要,则删除。docker rm fb087642b497(该containerID)
如果想要再次使用,使用

docker restart 镜像名

则可以重启该container容器。

你可能感兴趣的:(docker)