執行 docker run 命令遇到了以下錯誤
docker: Error response from daemon: Conflict. The container name "/lnmp" is already in use by container "329e*******". You have to remove (or rename) that container to be able to reuse that name.
使用 docker ps 命令發現存在運行着一個相同名字的容器,停止並刪除該容器就可以啟動新的容器了
使用 docker ps 獲取 container ID
然后使用以下命令停止和刪除
docker kill fd3c0c622af6
docker rm fd3c0c622af6