Docker Community Forums

Share and learn in the Docker community.

Docker Overlay Network

Hi Docker Team,

How can we access the docker container which connected to the overlay network?

Please find the below Overlay network log and container logs.

=======================
Container Logs

[
{
“Id”: “43e19e21227169d9741b5afa7a124be1ad22209197052600dfe0d78984bbbbdc”,
“Created”: “2019-11-20T06:51:01.5637059Z”,
“Path”: “dotnet”,
“Args”: [
“OverlayNetwork.dll”
],
“State”: {
“Status”: “running”,
“Running”: true,
“Paused”: false,
“Restarting”: false,
“OOMKilled”: false,
“Dead”: false,
“Pid”: 22588,
“ExitCode”: 0,
“Error”: “”,
“StartedAt”: “2019-11-20T06:51:32.9835054Z”,
“FinishedAt”: “0001-01-01T00:00:00Z”
},
“Image”: “sha256:91e32667c397ad05ee9aac26eaca2de807238755f48455c1b4936a7d9fe7a449”,
“ResolvConfPath”: “”,
“HostnamePath”: “”,
“HostsPath”: “”,
“LogPath”: “C:\ProgramData\docker\containers\43e19e21227169d9741b5afa7a124be1ad22209197052600dfe0d78984bbbbdc\43e19e21227169d9741b5afa7a124be1ad22209197052600dfe0d78984bbbbdc-json.log”,
“Name”: “/overlayservice.1.7779sb20fpgibnz1ugb1tc2if”,
“RestartCount”: 0,
“Driver”: “windowsfilter”,
“Platform”: “windows”,
“MountLabel”: “”,
“ProcessLabel”: “”,
“AppArmorProfile”: “”,
“ExecIDs”: null,
“HostConfig”: {
“Binds”: null,
“ContainerIDFile”: “”,
“LogConfig”: {
“Type”: “json-file”,
“Config”: {
“env”: “os,customer”,
“labels”: “production_status”,
“max-file”: “3”,
“max-size”: “10m”
}
},
“NetworkMode”: “default”,
“PortBindings”: {},
“RestartPolicy”: {
“Name”: “”,
“MaximumRetryCount”: 0
},
“AutoRemove”: false,
“VolumeDriver”: “”,
“VolumesFrom”: null,
“CapAdd”: null,
“CapDrop”: null,
“Capabilities”: null,
“Dns”: null,
“DnsOptions”: null,
“DnsSearch”: null,
“ExtraHosts”: null,
“GroupAdd”: null,
“IpcMode”: “”,
“Cgroup”: “”,
“Links”: null,
“OomScoreAdj”: 0,
“PidMode”: “”,
“Privileged”: false,
“PublishAllPorts”: false,
“ReadonlyRootfs”: false,
“SecurityOpt”: null,
“UTSMode”: “”,
“UsernsMode”: “”,
“ShmSize”: 0,
“ConsoleSize”: [
0,
0
],
“Isolation”: “process”,
“CpuShares”: 0,
“Memory”: 0,
“NanoCpus”: 0,
“CgroupParent”: “”,
“BlkioWeight”: 0,
“BlkioWeightDevice”: null,
“BlkioDeviceReadBps”: null,
“BlkioDeviceWriteBps”: null,
“BlkioDeviceReadIOps”: null,
“BlkioDeviceWriteIOps”: null,
“CpuPeriod”: 0,
“CpuQuota”: 0,
“CpuRealtimePeriod”: 0,
“CpuRealtimeRuntime”: 0,
“CpusetCpus”: “”,
“CpusetMems”: “”,
“Devices”: null,
“DeviceCgroupRules”: null,
“DeviceRequests”: null,
“KernelMemory”: 0,
“KernelMemoryTCP”: 0,
“MemoryReservation”: 0,
“MemorySwap”: 0,
“MemorySwappiness”: null,
“OomKillDisable”: null,
“PidsLimit”: null,
“Ulimits”: null,
“CpuCount”: 0,
“CpuPercent”: 0,
“IOMaximumIOps”: 0,
“IOMaximumBandwidth”: 0,
“MaskedPaths”: null,
“ReadonlyPaths”: null,
“Init”: false
},
“GraphDriver”: {
“Data”: {
“dir”: “C:\ProgramData\docker\windowsfilter\43e19e21227169d9741b5afa7a124be1ad22209197052600dfe0d78984bbbbdc”
},
“Name”: “windowsfilter”
},
“Mounts”: ,
“Config”: {
“Hostname”: “43e19e212271”,
“Domainname”: “”,
“User”: “”,
“AttachStdin”: false,
“AttachStdout”: false,
“AttachStderr”: false,
“ExposedPorts”: {
“80/tcp”: {}
},
“Tty”: false,
“OpenStdin”: false,
“StdinOnce”: false,
“Env”: [
“DOTNET_SDK_VERSION=2.2.104”,
“ASPNETCORE_URLS=http://+:80”,
“DOTNET_RUNNING_IN_CONTAINER=true”,
“DOTNET_USE_POLLING_FILE_WATCHER=true”,
“NUGET_XMLDOC_MODE=skip”
],
“Cmd”: null,
“Image”: “overlayservice:latest”,
“Volumes”: null,
“WorkingDir”: “”,
“Entrypoint”: [
“dotnet”,
“OverlayNetwork.dll”
],
“OnBuild”: null,
“Labels”: {
“com.docker.swarm.node.id”: “69dxkjdgv3r80g2jopmav824j”,
“com.docker.swarm.service.id”: “7raj24li5oz69c5igpyyp9rb4”,
“com.docker.swarm.service.name”: “overlayservice”,
“com.docker.swarm.task”: “”,
“com.docker.swarm.task.id”: “7779sb20fpgibnz1ugb1tc2if”,
“com.docker.swarm.task.name”: “overlayservice.1.7779sb20fpgibnz1ugb1tc2if”
}
},
“NetworkSettings”: {
“Bridge”: “”,
“SandboxID”: “43e19e21227169d9741b5afa7a124be1ad22209197052600dfe0d78984bbbbdc”,
“HairpinMode”: false,
“LinkLocalIPv6Address”: “”,
“LinkLocalIPv6PrefixLen”: 0,
“Ports”: {
“80/tcp”: null
},
“SandboxKey”: “43e19e21227169d9741b5afa7a124be1ad22209197052600dfe0d78984bbbbdc”,
“SecondaryIPAddresses”: null,
“SecondaryIPv6Addresses”: null,
“EndpointID”: “”,
“Gateway”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“IPAddress”: “”,
“IPPrefixLen”: 0,
“IPv6Gateway”: “”,
“MacAddress”: “”,
“Networks”: {
“ingress”: {
“IPAMConfig”: {
“IPv4Address”: “10.255.0.4”
},
“Links”: null,
“Aliases”: [
“43e19e212271”
],
“NetworkID”: “guwirpsftzroe85t78n51nv9j”,
“EndpointID”: “43d957982fbe207172f4dc92f3070bea1970381d5e979c2eb1dc96c96e82f7e8”,
“Gateway”: “”,
“IPAddress”: “10.255.0.4”,
“IPPrefixLen”: 16,
“IPv6Gateway”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“MacAddress”: “00:15:5d:7c:7c:6a”,
“DriverOpts”: null
},
“sdx_network”: {
“IPAMConfig”: {
“IPv4Address”: “10.0.3.3”
},
“Links”: null,
“Aliases”: [
“43e19e212271”
],
“NetworkID”: “xmnb6g839zipm5dmbdepbm9mg”,
“EndpointID”: “115098c3a2df26e1f1271274d0380ce87cb1164f4630f7ac8c8427d958fd87db”,
“Gateway”: “”,
“IPAddress”: “10.0.3.3”,
“IPPrefixLen”: 24,
“IPv6Gateway”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“MacAddress”: “00:15:5d:51:c5:9e”,
“DriverOpts”: null
}
}
}
}
]

=============================
Overlay Network

[
{
“ID”: “7raj24li5oz69c5igpyyp9rb4”,
“Version”: {
“Index”: 127497
},
“CreatedAt”: “2019-11-20T06:51:00.3626482Z”,
“UpdatedAt”: “2019-11-20T06:51:00.3676387Z”,
“Spec”: {
“Name”: “overlayservice”,
“Labels”: {},
“TaskTemplate”: {
“ContainerSpec”: {
“Image”: “overlayservice:latest”,
“Init”: false,
“StopGracePeriod”: 10000000000,
“DNSConfig”: {},
“Isolation”: “default”
},
“Resources”: {
“Limits”: {},
“Reservations”: {}
},
“RestartPolicy”: {
“Condition”: “any”,
“Delay”: 5000000000,
“MaxAttempts”: 0
},
“Placement”: {},
“Networks”: [
{
“Target”: “xmnb6g839zipm5dmbdepbm9mg”
}
],
“ForceUpdate”: 0,
“Runtime”: “container”
},
“Mode”: {
“Replicated”: {
“Replicas”: 1
}
},
“UpdateConfig”: {
“Parallelism”: 1,
“FailureAction”: “pause”,
“Monitor”: 5000000000,
“MaxFailureRatio”: 0,
“Order”: “stop-first”
},
“RollbackConfig”: {
“Parallelism”: 1,
“FailureAction”: “pause”,
“Monitor”: 5000000000,
“MaxFailureRatio”: 0,
“Order”: “stop-first”
},
“EndpointSpec”: {
“Mode”: “vip”,
“Ports”: [
{
“Protocol”: “tcp”,
“TargetPort”: 80,
“PublishedPort”: 7204,
“PublishMode”: “ingress”
}
]
}
},
“Endpoint”: {
“Spec”: {
“Mode”: “vip”,
“Ports”: [
{
“Protocol”: “tcp”,
“TargetPort”: 80,
“PublishedPort”: 7204,
“PublishMode”: “ingress”
}
]
},
“Ports”: [
{
“Protocol”: “tcp”,
“TargetPort”: 80,
“PublishedPort”: 7204,
“PublishMode”: “ingress”
}
],
“VirtualIPs”: [
{
“NetworkID”: “guwirpsftzroe85t78n51nv9j”,
“Addr”: “10.255.0.3/16”
},
{
“NetworkID”: “xmnb6g839zipm5dmbdepbm9mg”,
“Addr”: “10.0.3.2/24”
}
]
}
}
]

Thanks.
Best Regards,
Toe