1. 程式人生 > >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 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容器。