The container name "/nacos" is already in use by container

转载请注明出处:

  服务器上使用docker 安装启动 nacos 的时候,报 The container name "/nacos" is already in use by container 异常,其具体信息如下:

  The container name "/nacos" is already in use by container

   解决方案:

  1。 查看所有的 docker 容器。

docker ps -a

  该命令可以查看所以启动过的容器(包含已停止及正在运行的docker 容器)

  The container name "/nacos" is already in use by container

   2. 移除已存在的容器

docker rm containerId

  The container name "/nacos" is already in use by container

  3. 使用docker 重新启动nacos 

docker run -d  --name nacos -p 8848:8848 --env MODE=standalone --env NACOS_SERVER_IP=112.125.26.68 nacos/nacos-server

  The container name "/nacos" is already in use by container

  4. 可以正常访问:

  The container name "/nacos" is already in use by container

 

上一篇:Eclipse删除已安装插件


下一篇:TCP socket绑定(bind)失败---Address already is use原因