Centos7 Linux dk 4.4.88-1. El7. Elrepo. X86_64
/root @ dk ~ # docker node ls
ID the HOSTNAME STATUS the AVAILABILITY MANAGER STATUS
A858gqzl7t1byagtg9kit3oyk * dk Ready Active Leader
Uqi8rompb3ctj8m8ubhudr5qv docker140 Ready Active
Docker overlay network is as follows:
/root @ dk ~ # docker network inspect mynet1
{
"Name" : "mynet1,"
"Id" : "lgiwo05u7zoinxm3p9cu5j1a9,"
"Created" : "the 2017-10-20 T14: day. 210209223 + 08:00,
"Scope" : "swarm",
"Driver" : "overlay",
"EnableIPv6" : false,
"IPAM" : {
"Driver" : "default",
"Options" : null,
"Config" : [
{
"Subnet configures" : "10.0.0.0/16,"
"Gateway", "10.0.0.1"
}
]
},
"Internal" : false,
"Attachable" : false,
The "Ingress" : false,
"ConfigFrom" : {
"Network", "
"},
"ConfigOnly" : false,
"Containers" : {},
"Options" : {
"Com.docker.net work. The driver. The overlay. Vxlanid_list" : "4097"
},
"Labels" : {},
"Peers" : [
{
"Name" : "docker140-6 b209ddb717f,"
"IP" : "192.168.0.140
"},
{
"Name" : "dk - d31ef72a3bcd,"
"IP" : "192.168.0.70
"}
]
}
]
/root @ dk ~ # docker service create -- replicas 2 -- the name mytest - network mynet1 centos
Create an OK service
/root @ dk ~ # docker service ls
ID NAME MODE REPLICAS IMAGE PORTS
Szoxi0wygl3l mytest replicated.two survivors centos: latest
This is to let people collapse
See the message log
The following error:
Oct 20 14:18:15 dk dockerd: time="2017-10-20 T14: mind. 858087716 + 08:00" level=error MSG="failed o service binding for 3 d78644851cb2c82c7f5badd0ba3c5624a4e9551e97660ba14a4343340b0d802 epRec: {mytest. 2. B8y0p
Nytx7t4ogdql275uujnz mytest szoxi0wygl3lu1k2y6ekik4ga 10.0.0.2 10.0.0.4 [] [] [8 f0365c07025]} err: network lgiwo05u7zoinxm3p9cu5j1a9 not found
"/root @ dk ~ # docker network ls
The NETWORK ID NAME DRIVER SCOPE
80 dc15eda3ec bridge, bridge, local
33 b763b3e029 docker_gwbridge bridge, local
0 cdcd93f694f host host local
5 d5sclozwahv ingress overlay swarm
L giwo05u7zoi mynet1 overlay swarm
10 aa9e2e4554 none null local
Above is my question has not been solved, and the great spirit show
CodePudding user response:
Baidu search relevant keywords,CodePudding user response:
@ didn't find some teacher zhao 4 information should be I don't understand docker in place where is wrongCodePudding user response: