Docker: Unable to ping between nodes using overlay in windows containerHow to list containers in DockerHow to remove old Docker containersCopying files from Docker container to hostCopying files from host to Docker containerWhat is the difference between a Docker image and a container?From inside of a Docker container, how do I connect to the localhost of the machine?Run docker swarm mode on windows 10 using multiple hostsDocker swarm overlay network between subnetsDocker Swarm Overlay Network Not Working Between Nodesdocker container ls shows no container
Will users know a CardView is clickable?
Why does my system use more RAM after an hour of usage?
Is it possible for underground bunkers on different continents to be connected?
Print the phrase "And she said, 'But that's his.'" using only the alphabet
How do I gain the trust of other PCs?
2 Managed Packages in 1 Dev Org
Testing thermite for chemical properties
New Site Design!
How do CMB photons 'gain energy when they pass through normal regions of space with matter' and 'lose energy when they pass through voids'?
...and then she held the gun
How useful is the GRE Exam?
How to sort human readable size
Can "Es tut mir leid" be used to express empathy rather than remorse?
Someone who is granted access to information but not expected to read it
I have found ports on my Samsung smart tv running a display service. What can I do with it?
Is my research statement supposed to lead to papers in top journals?
Using roof rails to set up hammock
Interview was just a one hour panel. Got an offer the next day; do I accept or is this a red flag?
How to write a nice frame challenge?
How to avoid offending original culture when making conculture inspired from original
1960s sci-fi anthology with a Viking fighting a U.S. army MP on the cover
SQL Server has encountered occurences of I/O requests taking longer than 15 seconds
Should I email my professor to clear up a (possibly very irrelevant) awkward misunderstanding?
What are the mechanical differences between Adapt and Monstrosity?
Docker: Unable to ping between nodes using overlay in windows container
How to list containers in DockerHow to remove old Docker containersCopying files from Docker container to hostCopying files from host to Docker containerWhat is the difference between a Docker image and a container?From inside of a Docker container, how do I connect to the localhost of the machine?Run docker swarm mode on windows 10 using multiple hostsDocker swarm overlay network between subnetsDocker Swarm Overlay Network Not Working Between Nodesdocker container ls shows no container
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I would like to do a ping from my worker node(Windows server 2016 using VMware) to my manager node (windows 10 pro host machine)
Both are running in windows container and the base image is windows server core.
Disabled firewall and real time protection on both nodes.
My steps:
1. I initialized the swarm:
docker swarm init --advertise-addr 10.2.40.56 --listen-addr 10.2.40.56:2377
Copied the token run it on my work node (VMware):
docker swarm join --token xxx 10.2.40.56:2377Create my overlay network:
docker network create -d overlay oscnetwork
docker network ls
NETWORK ID NAME DRIVER SCOPE
d3d31701c63c Default Switch ics local
223b63c174a6 MyNewVM transparent local
kkg48ht1mm2i ingress overlay swarm
0502c3c90154 nat nat local
398e644b974d none null local
0c57431eex76 oscnetwork overlay swarm
- Node check:
docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION
x743m4s7e88teo8r556pps7x0 * DESKTOP-MND1RMF Ready Active Leader 18.09.2
q5khhc9sxtx2arq5vnzk1ff1g WIN-O80KBT0ALHF Ready Active 18.09.3
5. Create a service for both manager and worker:
docker service create --name testService --network oscnetwork --replicas 2 -t mcr.microsoft.com/windows/servercore
fex0sohv28dbrrweknuieal6o
overall progress: 2 out of 2 tasks
1/2: running [==================================================>]
2/2: running [==================================================>]
verify: Service converged
6.Checking of services:
docker service ls
ID NAME MODE REPLICAS IMAGE PORTS
fex0sohv28db testService replicated 2/2 mcr.microsoft.com/windows/servercore:latest
C:WINDOWSsystem32>docker service ps testService
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
fui0wmz53y6n testService.1 mcr.microsoft.com/windows/servercore:latest DESKTOP-MND1RMF Running Running 29 seconds ago
3y7onvm565eb testService.2 mcr.microsoft.com/windows/servercore:latest WIN-O80KBT0ALHF Running Running 38 seconds ago
Check for manager node's ipv4:
docker network inspect oscnetwork
[
"Name": "oscnetwork",
"Id": "0c57431eex769r8hrb6shipk6",
"Created": "2019-03-25T10:09:08.6121437+08:00",
"Scope": "swarm",
"Driver": "overlay",
"EnableIPv6": false,
"IPAM":
"Driver": "default",
"Options": null,
"Config": [
"Subnet": "10.0.0.0/24",
"Gateway": "10.0.0.1"
]
,
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom":
"Network": ""
,
"ConfigOnly": false,
"Containers":
"58d2401f966e38ef0d587749d0fc4e0ef8788ff35ce313941db7ac479bf918d9":
"Name": "testService.1.fui0wmz53y6n4nnmpcpimyvq7",
"EndpointID": "3233c31e4f628d81b7dad518a46aa7ff0df59fc2eeb6d66852cb10c34e5a59b3",
"MacAddress": "00:15:5d:53:a0:71",
"IPv4Address": "10.0.0.3/24",
"IPv6Address": ""
,
"lb-oscnetwork":
"Name": "oscnetwork-endpoint",
"EndpointID": "60c81c70081fdedfd56985575d9493ecd74a2ec75bc5c1e8f5e46c8a2c62ccd4",
"MacAddress": "00:15:5d:53:a9:3c",
"IPv4Address": "10.0.0.5/24",
"IPv6Address": ""
,
"Options":
"com.docker.network.driver.overlay.vxlanid_list": "4097",
"com.docker.network.windowsshim.hnsid": "12B5FFA3-73B7-4CE6-BB63-7EAC7AC39324"
,
"Labels": ,
"Peers": [
"Name": "64f325a8ceda",
"IP": "10.2.40.57"
,
"Name": "8b4ea8ba1b4c",
"IP": "10.2.40.56"
]
]
Check for worker's ipv4:
docker network inspect oscnetwork
[
"Name": "oscnetwork",
"Id": "0c57431eex769r8hrb6shipk6",
"Created": "2019-03-25T10:09:08.6163688+08:00",
"Scope": "swarm",
"Driver": "overlay",
"EnableIPv6": false,
"IPAM":
"Driver": "default",
"Options": null,
"Config": [
"Subnet": "10.0.0.0/24",
"Gateway": "10.0.0.1"
]
,
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom":
"Network": ""
,
"ConfigOnly": false,
"Containers":
"7b0fc57b716e9500eb32ae546d27ecc9365f1de3188b919c5e9409d09c7e8606":
"Name": "testService.2.3y7onvm565eb222sfp9cn39lx",
"EndpointID": "3e0efc7eb29fb20f03053ef557e0a1109f89654a8d67c0c560215b80840f4f75",
"MacAddress": "00:15:5d:6f:46:bf",
"IPv4Address": "10.0.0.4/24",
"IPv6Address": ""
,
"lb-oscnetwork":
"Name": "oscnetwork-endpoint",
"EndpointID": "8dea6242065a1bfaf74a4d09d6251cd3cb48a9d727b17f21554b78f4a5d9c478",
"MacAddress": "00:15:5d:6f:4c:e5",
"IPv4Address": "10.0.0.6/24",
"IPv6Address": ""
,
"Options":
"com.docker.network.driver.overlay.vxlanid_list": "4097",
"com.docker.network.windowsshim.hnsid": "62dee47e-3119-4b94-b279-8d3219575a62"
,
"Labels": ,
"Peers": [
"Name": "64f325a8ceda",
"IP": "10.2.40.57"
,
"Name": "8b4ea8ba1b4c",
"IP": "10.2.40.56"
]
]
Under my worker node (running container):
ping 10.0.0.3
Ouput:
Pinging 10.0.0.3 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 10.0.0.3:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Expected output": Able to send packets.
Ports Used:
TCP 10.2.40.56:2377 DESKTOP-MND1RMF:0 LISTENING
[dockerd.exe]
TCP 10.2.40.56:2377 WIN-O80KBT0ALHF:52770 ESTABLISHED
[dockerd.exe]
TCP 10.2.40.56:7946 DESKTOP-MND1RMF:0 LISTENING
[dockerd.exe]
TCP 10.2.40.56:7946 WIN-O80KBT0ALHF:53237 TIME_WAIT
TCP 10.2.40.56:7946 WIN-O80KBT0ALHF:53241 TIME_WAIT
TCP 10.2.40.56:7946 WIN-O80KBT0ALHF:53244 TIME_WAIT
TCP 10.2.40.56:7946 WIN-O80KBT0ALHF:53247 TIME_WAIT
TCP 10.2.40.56:55784 13.89.187.212:https ESTABLISHED
WpnService
[svchost.exe]
I could not figure out what went wrong. Would appreciate if someone could help me. Thank you.
docker docker-swarm docker-windows
add a comment |
I would like to do a ping from my worker node(Windows server 2016 using VMware) to my manager node (windows 10 pro host machine)
Both are running in windows container and the base image is windows server core.
Disabled firewall and real time protection on both nodes.
My steps:
1. I initialized the swarm:
docker swarm init --advertise-addr 10.2.40.56 --listen-addr 10.2.40.56:2377
Copied the token run it on my work node (VMware):
docker swarm join --token xxx 10.2.40.56:2377Create my overlay network:
docker network create -d overlay oscnetwork
docker network ls
NETWORK ID NAME DRIVER SCOPE
d3d31701c63c Default Switch ics local
223b63c174a6 MyNewVM transparent local
kkg48ht1mm2i ingress overlay swarm
0502c3c90154 nat nat local
398e644b974d none null local
0c57431eex76 oscnetwork overlay swarm
- Node check:
docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION
x743m4s7e88teo8r556pps7x0 * DESKTOP-MND1RMF Ready Active Leader 18.09.2
q5khhc9sxtx2arq5vnzk1ff1g WIN-O80KBT0ALHF Ready Active 18.09.3
5. Create a service for both manager and worker:
docker service create --name testService --network oscnetwork --replicas 2 -t mcr.microsoft.com/windows/servercore
fex0sohv28dbrrweknuieal6o
overall progress: 2 out of 2 tasks
1/2: running [==================================================>]
2/2: running [==================================================>]
verify: Service converged
6.Checking of services:
docker service ls
ID NAME MODE REPLICAS IMAGE PORTS
fex0sohv28db testService replicated 2/2 mcr.microsoft.com/windows/servercore:latest
C:WINDOWSsystem32>docker service ps testService
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
fui0wmz53y6n testService.1 mcr.microsoft.com/windows/servercore:latest DESKTOP-MND1RMF Running Running 29 seconds ago
3y7onvm565eb testService.2 mcr.microsoft.com/windows/servercore:latest WIN-O80KBT0ALHF Running Running 38 seconds ago
Check for manager node's ipv4:
docker network inspect oscnetwork
[
"Name": "oscnetwork",
"Id": "0c57431eex769r8hrb6shipk6",
"Created": "2019-03-25T10:09:08.6121437+08:00",
"Scope": "swarm",
"Driver": "overlay",
"EnableIPv6": false,
"IPAM":
"Driver": "default",
"Options": null,
"Config": [
"Subnet": "10.0.0.0/24",
"Gateway": "10.0.0.1"
]
,
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom":
"Network": ""
,
"ConfigOnly": false,
"Containers":
"58d2401f966e38ef0d587749d0fc4e0ef8788ff35ce313941db7ac479bf918d9":
"Name": "testService.1.fui0wmz53y6n4nnmpcpimyvq7",
"EndpointID": "3233c31e4f628d81b7dad518a46aa7ff0df59fc2eeb6d66852cb10c34e5a59b3",
"MacAddress": "00:15:5d:53:a0:71",
"IPv4Address": "10.0.0.3/24",
"IPv6Address": ""
,
"lb-oscnetwork":
"Name": "oscnetwork-endpoint",
"EndpointID": "60c81c70081fdedfd56985575d9493ecd74a2ec75bc5c1e8f5e46c8a2c62ccd4",
"MacAddress": "00:15:5d:53:a9:3c",
"IPv4Address": "10.0.0.5/24",
"IPv6Address": ""
,
"Options":
"com.docker.network.driver.overlay.vxlanid_list": "4097",
"com.docker.network.windowsshim.hnsid": "12B5FFA3-73B7-4CE6-BB63-7EAC7AC39324"
,
"Labels": ,
"Peers": [
"Name": "64f325a8ceda",
"IP": "10.2.40.57"
,
"Name": "8b4ea8ba1b4c",
"IP": "10.2.40.56"
]
]
Check for worker's ipv4:
docker network inspect oscnetwork
[
"Name": "oscnetwork",
"Id": "0c57431eex769r8hrb6shipk6",
"Created": "2019-03-25T10:09:08.6163688+08:00",
"Scope": "swarm",
"Driver": "overlay",
"EnableIPv6": false,
"IPAM":
"Driver": "default",
"Options": null,
"Config": [
"Subnet": "10.0.0.0/24",
"Gateway": "10.0.0.1"
]
,
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom":
"Network": ""
,
"ConfigOnly": false,
"Containers":
"7b0fc57b716e9500eb32ae546d27ecc9365f1de3188b919c5e9409d09c7e8606":
"Name": "testService.2.3y7onvm565eb222sfp9cn39lx",
"EndpointID": "3e0efc7eb29fb20f03053ef557e0a1109f89654a8d67c0c560215b80840f4f75",
"MacAddress": "00:15:5d:6f:46:bf",
"IPv4Address": "10.0.0.4/24",
"IPv6Address": ""
,
"lb-oscnetwork":
"Name": "oscnetwork-endpoint",
"EndpointID": "8dea6242065a1bfaf74a4d09d6251cd3cb48a9d727b17f21554b78f4a5d9c478",
"MacAddress": "00:15:5d:6f:4c:e5",
"IPv4Address": "10.0.0.6/24",
"IPv6Address": ""
,
"Options":
"com.docker.network.driver.overlay.vxlanid_list": "4097",
"com.docker.network.windowsshim.hnsid": "62dee47e-3119-4b94-b279-8d3219575a62"
,
"Labels": ,
"Peers": [
"Name": "64f325a8ceda",
"IP": "10.2.40.57"
,
"Name": "8b4ea8ba1b4c",
"IP": "10.2.40.56"
]
]
Under my worker node (running container):
ping 10.0.0.3
Ouput:
Pinging 10.0.0.3 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 10.0.0.3:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Expected output": Able to send packets.
Ports Used:
TCP 10.2.40.56:2377 DESKTOP-MND1RMF:0 LISTENING
[dockerd.exe]
TCP 10.2.40.56:2377 WIN-O80KBT0ALHF:52770 ESTABLISHED
[dockerd.exe]
TCP 10.2.40.56:7946 DESKTOP-MND1RMF:0 LISTENING
[dockerd.exe]
TCP 10.2.40.56:7946 WIN-O80KBT0ALHF:53237 TIME_WAIT
TCP 10.2.40.56:7946 WIN-O80KBT0ALHF:53241 TIME_WAIT
TCP 10.2.40.56:7946 WIN-O80KBT0ALHF:53244 TIME_WAIT
TCP 10.2.40.56:7946 WIN-O80KBT0ALHF:53247 TIME_WAIT
TCP 10.2.40.56:55784 13.89.187.212:https ESTABLISHED
WpnService
[svchost.exe]
I could not figure out what went wrong. Would appreciate if someone could help me. Thank you.
docker docker-swarm docker-windows
add a comment |
I would like to do a ping from my worker node(Windows server 2016 using VMware) to my manager node (windows 10 pro host machine)
Both are running in windows container and the base image is windows server core.
Disabled firewall and real time protection on both nodes.
My steps:
1. I initialized the swarm:
docker swarm init --advertise-addr 10.2.40.56 --listen-addr 10.2.40.56:2377
Copied the token run it on my work node (VMware):
docker swarm join --token xxx 10.2.40.56:2377Create my overlay network:
docker network create -d overlay oscnetwork
docker network ls
NETWORK ID NAME DRIVER SCOPE
d3d31701c63c Default Switch ics local
223b63c174a6 MyNewVM transparent local
kkg48ht1mm2i ingress overlay swarm
0502c3c90154 nat nat local
398e644b974d none null local
0c57431eex76 oscnetwork overlay swarm
- Node check:
docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION
x743m4s7e88teo8r556pps7x0 * DESKTOP-MND1RMF Ready Active Leader 18.09.2
q5khhc9sxtx2arq5vnzk1ff1g WIN-O80KBT0ALHF Ready Active 18.09.3
5. Create a service for both manager and worker:
docker service create --name testService --network oscnetwork --replicas 2 -t mcr.microsoft.com/windows/servercore
fex0sohv28dbrrweknuieal6o
overall progress: 2 out of 2 tasks
1/2: running [==================================================>]
2/2: running [==================================================>]
verify: Service converged
6.Checking of services:
docker service ls
ID NAME MODE REPLICAS IMAGE PORTS
fex0sohv28db testService replicated 2/2 mcr.microsoft.com/windows/servercore:latest
C:WINDOWSsystem32>docker service ps testService
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
fui0wmz53y6n testService.1 mcr.microsoft.com/windows/servercore:latest DESKTOP-MND1RMF Running Running 29 seconds ago
3y7onvm565eb testService.2 mcr.microsoft.com/windows/servercore:latest WIN-O80KBT0ALHF Running Running 38 seconds ago
Check for manager node's ipv4:
docker network inspect oscnetwork
[
"Name": "oscnetwork",
"Id": "0c57431eex769r8hrb6shipk6",
"Created": "2019-03-25T10:09:08.6121437+08:00",
"Scope": "swarm",
"Driver": "overlay",
"EnableIPv6": false,
"IPAM":
"Driver": "default",
"Options": null,
"Config": [
"Subnet": "10.0.0.0/24",
"Gateway": "10.0.0.1"
]
,
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom":
"Network": ""
,
"ConfigOnly": false,
"Containers":
"58d2401f966e38ef0d587749d0fc4e0ef8788ff35ce313941db7ac479bf918d9":
"Name": "testService.1.fui0wmz53y6n4nnmpcpimyvq7",
"EndpointID": "3233c31e4f628d81b7dad518a46aa7ff0df59fc2eeb6d66852cb10c34e5a59b3",
"MacAddress": "00:15:5d:53:a0:71",
"IPv4Address": "10.0.0.3/24",
"IPv6Address": ""
,
"lb-oscnetwork":
"Name": "oscnetwork-endpoint",
"EndpointID": "60c81c70081fdedfd56985575d9493ecd74a2ec75bc5c1e8f5e46c8a2c62ccd4",
"MacAddress": "00:15:5d:53:a9:3c",
"IPv4Address": "10.0.0.5/24",
"IPv6Address": ""
,
"Options":
"com.docker.network.driver.overlay.vxlanid_list": "4097",
"com.docker.network.windowsshim.hnsid": "12B5FFA3-73B7-4CE6-BB63-7EAC7AC39324"
,
"Labels": ,
"Peers": [
"Name": "64f325a8ceda",
"IP": "10.2.40.57"
,
"Name": "8b4ea8ba1b4c",
"IP": "10.2.40.56"
]
]
Check for worker's ipv4:
docker network inspect oscnetwork
[
"Name": "oscnetwork",
"Id": "0c57431eex769r8hrb6shipk6",
"Created": "2019-03-25T10:09:08.6163688+08:00",
"Scope": "swarm",
"Driver": "overlay",
"EnableIPv6": false,
"IPAM":
"Driver": "default",
"Options": null,
"Config": [
"Subnet": "10.0.0.0/24",
"Gateway": "10.0.0.1"
]
,
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom":
"Network": ""
,
"ConfigOnly": false,
"Containers":
"7b0fc57b716e9500eb32ae546d27ecc9365f1de3188b919c5e9409d09c7e8606":
"Name": "testService.2.3y7onvm565eb222sfp9cn39lx",
"EndpointID": "3e0efc7eb29fb20f03053ef557e0a1109f89654a8d67c0c560215b80840f4f75",
"MacAddress": "00:15:5d:6f:46:bf",
"IPv4Address": "10.0.0.4/24",
"IPv6Address": ""
,
"lb-oscnetwork":
"Name": "oscnetwork-endpoint",
"EndpointID": "8dea6242065a1bfaf74a4d09d6251cd3cb48a9d727b17f21554b78f4a5d9c478",
"MacAddress": "00:15:5d:6f:4c:e5",
"IPv4Address": "10.0.0.6/24",
"IPv6Address": ""
,
"Options":
"com.docker.network.driver.overlay.vxlanid_list": "4097",
"com.docker.network.windowsshim.hnsid": "62dee47e-3119-4b94-b279-8d3219575a62"
,
"Labels": ,
"Peers": [
"Name": "64f325a8ceda",
"IP": "10.2.40.57"
,
"Name": "8b4ea8ba1b4c",
"IP": "10.2.40.56"
]
]
Under my worker node (running container):
ping 10.0.0.3
Ouput:
Pinging 10.0.0.3 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 10.0.0.3:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Expected output": Able to send packets.
Ports Used:
TCP 10.2.40.56:2377 DESKTOP-MND1RMF:0 LISTENING
[dockerd.exe]
TCP 10.2.40.56:2377 WIN-O80KBT0ALHF:52770 ESTABLISHED
[dockerd.exe]
TCP 10.2.40.56:7946 DESKTOP-MND1RMF:0 LISTENING
[dockerd.exe]
TCP 10.2.40.56:7946 WIN-O80KBT0ALHF:53237 TIME_WAIT
TCP 10.2.40.56:7946 WIN-O80KBT0ALHF:53241 TIME_WAIT
TCP 10.2.40.56:7946 WIN-O80KBT0ALHF:53244 TIME_WAIT
TCP 10.2.40.56:7946 WIN-O80KBT0ALHF:53247 TIME_WAIT
TCP 10.2.40.56:55784 13.89.187.212:https ESTABLISHED
WpnService
[svchost.exe]
I could not figure out what went wrong. Would appreciate if someone could help me. Thank you.
docker docker-swarm docker-windows
I would like to do a ping from my worker node(Windows server 2016 using VMware) to my manager node (windows 10 pro host machine)
Both are running in windows container and the base image is windows server core.
Disabled firewall and real time protection on both nodes.
My steps:
1. I initialized the swarm:
docker swarm init --advertise-addr 10.2.40.56 --listen-addr 10.2.40.56:2377
Copied the token run it on my work node (VMware):
docker swarm join --token xxx 10.2.40.56:2377Create my overlay network:
docker network create -d overlay oscnetwork
docker network ls
NETWORK ID NAME DRIVER SCOPE
d3d31701c63c Default Switch ics local
223b63c174a6 MyNewVM transparent local
kkg48ht1mm2i ingress overlay swarm
0502c3c90154 nat nat local
398e644b974d none null local
0c57431eex76 oscnetwork overlay swarm
- Node check:
docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION
x743m4s7e88teo8r556pps7x0 * DESKTOP-MND1RMF Ready Active Leader 18.09.2
q5khhc9sxtx2arq5vnzk1ff1g WIN-O80KBT0ALHF Ready Active 18.09.3
5. Create a service for both manager and worker:
docker service create --name testService --network oscnetwork --replicas 2 -t mcr.microsoft.com/windows/servercore
fex0sohv28dbrrweknuieal6o
overall progress: 2 out of 2 tasks
1/2: running [==================================================>]
2/2: running [==================================================>]
verify: Service converged
6.Checking of services:
docker service ls
ID NAME MODE REPLICAS IMAGE PORTS
fex0sohv28db testService replicated 2/2 mcr.microsoft.com/windows/servercore:latest
C:WINDOWSsystem32>docker service ps testService
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
fui0wmz53y6n testService.1 mcr.microsoft.com/windows/servercore:latest DESKTOP-MND1RMF Running Running 29 seconds ago
3y7onvm565eb testService.2 mcr.microsoft.com/windows/servercore:latest WIN-O80KBT0ALHF Running Running 38 seconds ago
Check for manager node's ipv4:
docker network inspect oscnetwork
[
"Name": "oscnetwork",
"Id": "0c57431eex769r8hrb6shipk6",
"Created": "2019-03-25T10:09:08.6121437+08:00",
"Scope": "swarm",
"Driver": "overlay",
"EnableIPv6": false,
"IPAM":
"Driver": "default",
"Options": null,
"Config": [
"Subnet": "10.0.0.0/24",
"Gateway": "10.0.0.1"
]
,
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom":
"Network": ""
,
"ConfigOnly": false,
"Containers":
"58d2401f966e38ef0d587749d0fc4e0ef8788ff35ce313941db7ac479bf918d9":
"Name": "testService.1.fui0wmz53y6n4nnmpcpimyvq7",
"EndpointID": "3233c31e4f628d81b7dad518a46aa7ff0df59fc2eeb6d66852cb10c34e5a59b3",
"MacAddress": "00:15:5d:53:a0:71",
"IPv4Address": "10.0.0.3/24",
"IPv6Address": ""
,
"lb-oscnetwork":
"Name": "oscnetwork-endpoint",
"EndpointID": "60c81c70081fdedfd56985575d9493ecd74a2ec75bc5c1e8f5e46c8a2c62ccd4",
"MacAddress": "00:15:5d:53:a9:3c",
"IPv4Address": "10.0.0.5/24",
"IPv6Address": ""
,
"Options":
"com.docker.network.driver.overlay.vxlanid_list": "4097",
"com.docker.network.windowsshim.hnsid": "12B5FFA3-73B7-4CE6-BB63-7EAC7AC39324"
,
"Labels": ,
"Peers": [
"Name": "64f325a8ceda",
"IP": "10.2.40.57"
,
"Name": "8b4ea8ba1b4c",
"IP": "10.2.40.56"
]
]
Check for worker's ipv4:
docker network inspect oscnetwork
[
"Name": "oscnetwork",
"Id": "0c57431eex769r8hrb6shipk6",
"Created": "2019-03-25T10:09:08.6163688+08:00",
"Scope": "swarm",
"Driver": "overlay",
"EnableIPv6": false,
"IPAM":
"Driver": "default",
"Options": null,
"Config": [
"Subnet": "10.0.0.0/24",
"Gateway": "10.0.0.1"
]
,
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom":
"Network": ""
,
"ConfigOnly": false,
"Containers":
"7b0fc57b716e9500eb32ae546d27ecc9365f1de3188b919c5e9409d09c7e8606":
"Name": "testService.2.3y7onvm565eb222sfp9cn39lx",
"EndpointID": "3e0efc7eb29fb20f03053ef557e0a1109f89654a8d67c0c560215b80840f4f75",
"MacAddress": "00:15:5d:6f:46:bf",
"IPv4Address": "10.0.0.4/24",
"IPv6Address": ""
,
"lb-oscnetwork":
"Name": "oscnetwork-endpoint",
"EndpointID": "8dea6242065a1bfaf74a4d09d6251cd3cb48a9d727b17f21554b78f4a5d9c478",
"MacAddress": "00:15:5d:6f:4c:e5",
"IPv4Address": "10.0.0.6/24",
"IPv6Address": ""
,
"Options":
"com.docker.network.driver.overlay.vxlanid_list": "4097",
"com.docker.network.windowsshim.hnsid": "62dee47e-3119-4b94-b279-8d3219575a62"
,
"Labels": ,
"Peers": [
"Name": "64f325a8ceda",
"IP": "10.2.40.57"
,
"Name": "8b4ea8ba1b4c",
"IP": "10.2.40.56"
]
]
Under my worker node (running container):
ping 10.0.0.3
Ouput:
Pinging 10.0.0.3 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 10.0.0.3:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Expected output": Able to send packets.
Ports Used:
TCP 10.2.40.56:2377 DESKTOP-MND1RMF:0 LISTENING
[dockerd.exe]
TCP 10.2.40.56:2377 WIN-O80KBT0ALHF:52770 ESTABLISHED
[dockerd.exe]
TCP 10.2.40.56:7946 DESKTOP-MND1RMF:0 LISTENING
[dockerd.exe]
TCP 10.2.40.56:7946 WIN-O80KBT0ALHF:53237 TIME_WAIT
TCP 10.2.40.56:7946 WIN-O80KBT0ALHF:53241 TIME_WAIT
TCP 10.2.40.56:7946 WIN-O80KBT0ALHF:53244 TIME_WAIT
TCP 10.2.40.56:7946 WIN-O80KBT0ALHF:53247 TIME_WAIT
TCP 10.2.40.56:55784 13.89.187.212:https ESTABLISHED
WpnService
[svchost.exe]
I could not figure out what went wrong. Would appreciate if someone could help me. Thank you.
docker docker-swarm docker-windows
docker docker-swarm docker-windows
edited Mar 25 at 5:28
Qi Ming
asked Mar 25 at 3:40
Qi MingQi Ming
12
12
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55330979%2fdocker-unable-to-ping-between-nodes-using-overlay-in-windows-container%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55330979%2fdocker-unable-to-ping-between-nodes-using-overlay-in-windows-container%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown