network "xxx" is declared as external, but could not be found. .You need to create a swarm-scoped n
network "school-service-net" is declared as external, but could not be found. You need to create a swarm-scoped network before the stack is deployeddocker compose create a swarm-scoped network
·
启动Docker compose报错:
报错内容:
network "school-service-net" is declared as external, but could not be found.
You need to create a swarm-scoped network before the stack is deployed
解决办法:启动前手动创建overlay类型network
docker network create --driver overlay school-service-net
再次启动就好了:
通过potainer查看容器启动正常:
参考: https://stackoverflow.com/questions/58161371/network-hbase-is-declared-as-external-but-could-not-be-found-you-need-to-cre
更多推荐
已为社区贡献3条内容
所有评论(0)