Some network of the error process

1. error

 

ERROR: Network internal declared as external, but could not be found. Please create the network manually using `docker network create internal` and try again.

Should the docker-composs as defined in the bridge internal. In the real world there is no need to manually create

[devops@node01 ~]$ sudo docker  network ls
NETWORK ID          NAME                DRIVER              SCOPE
67dee9aa55b4        bridge              bridge              local
72d0c0240d30        host                host                local
70f3da176e46        none                null                local

Overlay bridge is no need to manually create

You can refer to:

https://blog.csdn.net/weixx3/article/details/103963238

But what instruction will complain directly

sudo   docker network create --driver overlay   internal

 

 

Therefore, the following commands need to use

Use instruction, you can see

[devops@node01 ~]$ sudo   docker network create --driver=bridge --subnet=172.18.62.0/24 --ip-range=172.18.62.0/24 --gateway=172.18.62.254   internal(网络名在)
5b41d599a88b9c289b411822a2e84382c038fc9307a4ae969162ed24fe46b9af
[devops@node01 ~]$ sudo  docker  network  ls
NETWORK ID          NAME                DRIVER              SCOPE
f7ade8baa8e0        bridge              bridge              local
72d0c0240d30        host                host                local
5b41d599a88b        internal            bridge              local
70f3da176e46        none                null                local
[devops@node01 ~]$ 

 

Such as the following error

 

 

Iptables linux is open. Then restart the docker, on it. Premise need to install the bridge-utils.

 

Guess you like

Origin www.cnblogs.com/rockyricky/p/12642820.html