ERROR: 2 matches found based on name: network product-server_default is ambiguous

简介: ERROR: 2 matches found based on name: network product-server_default is ambiguous

环境

阿里云服务器,CentOs 7.2 64位

出现原因

启动脚本内容如下:

docker-compose down
docker rmi product-server_product
docker-compose up -d

服务器中两人同时执行启动脚本后,出错如下:

在这里插入图片描述

后面执行命令 docker-compose up -d 时错误信息如下:product-server

ERROR: 2 matches found based on name: network product-server_default is ambiguous

解决方法

 docker network ls

# 删除报错的两个 product-server_default 即可:
docker network rm d95512e66713 
docker network rm 8b094834a5c1
相关文章
|
29天前
|
Java
failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code
failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code
17 0
|
11月前
|
Java Go API
译|Don’t just check errors, handle them gracefully(二)
译|Don’t just check errors, handle them gracefully(二)
68 0
|
11月前
|
程序员 Go API
译|Don’t just check errors, handle them gracefully(一)
译|Don’t just check errors, handle them gracefully
58 0
|
网络协议 关系型数据库 Linux
onfigure: error: no acceptable C compiler found in $PATH See `config.log' for more details 问题解决
onfigure: error: no acceptable C compiler found in $PATH See `config.log' for more details 问题解决
155 0
|
应用服务中间件 Android开发
a configuration error occurred during startup. place verify the preference field whth the prompt:TomcatJDK name:
a configuration error occurred during startup. place verify the preference field whth the prompt:TomcatJDK name:
115 0
a configuration error occurred during startup. place verify the preference field whth the prompt:TomcatJDK name:
|
区块链
Error: No network specified. Cannot determine current network异常
Error: No network specified. Cannot determine current network异常
136 0
|
数据库
Multiple Server Query Execution报The result set could not be merged..
在SQL Server中使用Multiple Server Query Execution这个功能做数据库维护或脚本发布时非常方便,昨天由于磁盘空间原因,删除清理了大量的软件和组件,结果导致SSMS客户端出了问题,重装过后,使用Multiple Server Query Execution时,出现了...
965 0
|
应用服务中间件 数据格式 JSON
Tomcat 8 Invalid character found in the request target. The valid characters are defined in RFC 3986
终极解决方案: Invalid character found in the request target. The valid characters are defined in RFC 3986 25-Aug-2018 11:27:27.
20996 0