At first no configuration ipam using hub as HUB_HOST not
Up a busybox, found that ping is less than container under another node
To ask where is the configuration problems
Version: '3.7'
Networks:
Private:
Driver: overlay
Attachable: true
Ipam:
Driver: the default
Config:
- subnet configures: 172.24.1.0/16
Services:
The hub:
Image: selenium/hub
The hostname: the hub
Networks:
Private:
Aliases:
- the hub
Ipv4_address: 172.24.0.2
Ports:
- "80-4444
"Deploy:
Mode: global
Placement:
Constraints:
- node. Role==manager
Environment:
- GRID_BROWSER_TIMEOUT=60000
- GRID_TIMEOUT=60000
- GRID_MAX_SESSION=50
- GRID_MAX_INSTANCES=3
- GRID_CLEAN_UP_CYCLE=60000
- GRID_UNREGISTER_IF_STILL_DOWN_AFTER=180000
- GRID_NEW_SESSION_WAIT_TIMEOUT=60000
Firefox:
Image: selenium/node - firefox
Environment:
HUB_HOST: the hub
HUB_PORT: 4444
Entrypoint: bash - c 'SE_OPTS="- the host $$HOSTNAME - port 8055"/opt/bin/entry_point. Sh'
Ports:
- "8055-8055
"Deploy:
Replicas: 0
Depends_on:
- the hub
Networks:
- private
Chrome:
Image: selenium/node - chrome
Environment:
HUB_HOST: 172.24.0.2
HUB_PORT: 4444
Entrypoint: bash - c 'SE_OPTS="- the host $$HOSTNAME - port 8056"/opt/bin/entry_point. Sh'
Ports:
- "8056-8056
"Deploy:
Replicas: 1
Depends_on:
- the hub
Networks:
- private
Also attach a different node on the network information
Node1
{
"Name" : "selenium_private,"
"Id" : "juowntffwrbtp89nmcbk0fjme,"
"Created" : "the 2020-01-08 T11: so. 512208666 + 08:00,
"Scope" : "swarm",
"Driver" : "overlay",
"EnableIPv6" : false,
"IPAM" : {
"Driver" : "default",
"Options" : null,
"Config" : [
{
"Subnet configures" : "172.24.1.0/16,"
"Gateway", "172.24.0.1"
}
]
},
"Internal" : false,
"Attachable" : true,
The "Ingress" : false,
"ConfigFrom" : {
"Network", "
"},
"ConfigOnly" : false,
"Containers" : {
"03 b48160011b31ff2ceae4ebd0b072aecb0175b129f240d05b8d1f63829babe0" : {
"Name" : "selenium_hub. Rbmaf4atclg19v394jieezsyq. Klwvdq2n2mq4tb4h6fx6cttgg",
"EndpointID" : "9 d77691aecfa7f09cb1cfae6768e49f9e05d54ad9b8428ea85e234ab2f0c5ee6,"
"MacAddress" : "02:42: ac: 18:00:03",
"IPv4Address" : "172.24.0.3/16,"
"IPv6Address" : "","
},
"2142 df467be5016d1436582a0db1da03419c8dabb3b49898737824996bc6e669" : {
"Name" : "selenium_chrome. 3. Ps058utn21ny6sjk71ko7ko8q",
"EndpointID" : "71 a23f40865c9015dbe5aa4b6cc89e5078be9a7dc18b626a0769452dbb2a29b6",
"MacAddress" : "02:42: ac: 18:00:0 a",
"IPv4Address" : "172.24.0.10/16,"
"IPv6Address" : "","
},
"F68aaec2db15d54ed058287039bc1cd106918ee51f56417d0c4df60b68470119" : {
"Name" : "selenium_chrome. 4. Mwql77aef7o1ucksxi8zkxrhe",
"EndpointID" : "234722988 c78a61045f310e431e8e0ccbdab89969a97b5d07f60039c905527ec",
"MacAddress" : "02:42: ac: 18:00:0 b,"
"IPv4Address" : "172.24.0.11/16,"
"IPv6Address" : "","
},
"Lb - selenium_private" : {
"Name" : "selenium_private - the endpoint,"
"EndpointID" : "ea8aa0ba4aff8173ccdbf599e6241511074561c43497c895d9cb99fb34a15b6c,"
"MacAddress" : "02:42: ac: 18:00:04",
"IPv4Address" : "172.24.0.4/16,"
"IPv6Address" : "","
}
},
"Options" : {
"Com.docker.net work. The driver. The overlay. Vxlanid_list" : "4102"
},
"Labels" : {
"Com. Docker. Stack. The namespace" : "the selenium
"},
"Peers" : [
{
"Name" : "e990ea260d81,"
"IP" : "10.64.57.53
"}
]
}
]
2
{
"Name" : "selenium_private,"
"Id" : "juowntffwrbtp89nmcbk0fjme,"
"Created" : "the 2020-01-08 T03: no. 0986566 z,"
"Scope" : "swarm",
"Driver" : "overlay",
"EnableIPv6" : false,
"IPAM" : {
"Driver" : "default",
"Options" : null,
"Config" : [
{
"Subnet configures" : "172.24.1.0/16,"
"Gateway", "172.24.0.1"
}
]
},
"Internal" : false,
"Attachable" : true,
The "Ingress" : false,
"ConfigFrom" : {
"Network", "
"},
"ConfigOnly" : false,
"Containers" : {
"86 e22d43f13ae15c798b8abd0db0ccd8fb1665f4d7c4e0ea71182c3c7159e374" : {
"Name" : "selenium_chrome. 2. Cz2i4wfbb1jik015ccciecupo",
"EndpointID" : "82980 a653a4f704a84c821dca5836b7d4d1363fe8388a5df2aec5ceec03adfd6",
"MacAddress" : "02:42: ac: 18:00:0 c,"
"IPv4Address" : "172.24.0.12/16,"
"IPv6Address" : "","
},
"F0e3f1fca0a2af016915fc45f258de6c1c8b2719195371f12ca96ecfbee68d5e" : {
"Name" : "selenium_chrome. 1.0 ux1wof2m0le9t3j4iapmtl23,"
"EndpointID" : "8 ff9595a2a0a3c960b0988646854a8791aaf8e8cb6abcb5be56ea57503e88b52,"
"MacAddress" : "02:42: ac: 18:00:09",
"IPv4Address" : "172.24.0.9/16,"
"IPv6Address" : "","
},
"Lb - selenium_private" : {
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull