So, continuing from the test case specified above…
op@lightwhale:~$ d ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
58fd588e1604 nginx:1.25.2-alpine "/docker-entrypoint.…" 47 seconds ago Up 45 seconds 80/tcp www.1.zvmo0rdapfrgpz4qx10ja6qz4
And:
op@lightwhale:~$ d inspect 58fd588e1604
[
{
"Id": "58fd588e1604e1fc18063f8f0cae2892ef0389d8a2b7167ed8b3124b2163cfb7",
"Created": "2023-10-09T11:17:35.762082356Z",
"Path": "/docker-entrypoint.sh",
"Args": [
"nginx",
"-g",
"daemon off;"
],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 973,
"ExitCode": 0,
"Error": "",
"StartedAt": "2023-10-09T11:17:36.644440429Z",
"FinishedAt": "0001-01-01T00:00:00Z"
},
"Image": "sha256:d571254277f6a0ba9d0c4a08f29b94476dcd4a95275bd484ece060ee4ff847e4",
"ResolvConfPath": "/mnt/lightwhale-data/docker/containers/58fd588e1604e1fc18063f8f0cae2892ef0389d8a2b7167ed8b3124b2163cfb7/resolv.conf",
"HostnamePath": "/mnt/lightwhale-data/docker/containers/58fd588e1604e1fc18063f8f0cae2892ef0389d8a2b7167ed8b3124b2163cfb7/hostname",
"HostsPath": "/mnt/lightwhale-data/docker/containers/58fd588e1604e1fc18063f8f0cae2892ef0389d8a2b7167ed8b3124b2163cfb7/hosts",
"LogPath": "/mnt/lightwhale-data/docker/containers/58fd588e1604e1fc18063f8f0cae2892ef0389d8a2b7167ed8b3124b2163cfb7/58fd588e1604e1fc18063f8f0cae2892ef0389d8a2b7167ed8b3124b2163cfb7-json.log",
"Name": "/www.1.zvmo0rdapfrgpz4qx10ja6qz4",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": null,
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "default",
"PortBindings": {},
"RestartPolicy": {
"Name": "",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"ConsoleSize": [
0,
0
],
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "private",
"Dns": null,
"DnsOptions": null,
"DnsSearch": null,
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"Isolation": "default",
"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,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": null,
"PidsLimit": null,
"Ulimits": [],
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": [
"/proc/asound",
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
],
"Init": false
},
"GraphDriver": {
"Data": {
"LowerDir": "/mnt/lightwhale-data/docker/overlay2/a9c1dd49cd31e890e1fbeb8633cab58504e7e031822ec720e74d3a2526f8c694-init/diff:/mnt/lightwhale-data/docker/overlay2/16ea02fd244867a1c4f695fc8b08337499d1c61d16d4ad609c8276ebd1f63a34/diff:/mnt/lightwhale-data/docker/overlay2/8f831ce946b1fd4dc29d4c236e01e7c78233a181cfd2cc88c57f7a36e73cf023/diff:/mnt/lightwhale-data/docker/overlay2/227dc1fbfb12d02764ea66bd8ae03605d0025e4c4df4fe687db837c0ab577b23/diff:/mnt/lightwhale-data/docker/overlay2/1cfbd4f6681ec74c1ebb6792f865ac09833eb2caf77bae418329b2fde96c39d7/diff:/mnt/lightwhale-data/docker/overlay2/c3bf1feb189150e28f03f76fb9f60f3cdb73b29008f0b7cfd8877e89d1e2ebea/diff:/mnt/lightwhale-data/docker/overlay2/c87a5502976edbe728c9af98aa8ffad998ae0df0b079a420dc909054c8d743b7/diff:/mnt/lightwhale-data/docker/overlay2/e6d8a8ba9a954281c40628e8f62712b51bcd09bcfede0e84c063c8d7f5a4c38e/diff:/mnt/lightwhale-data/docker/overlay2/dcb1da9ae6dcc7fd368700e869bae6e1dc3d8e792eb5aadd7c7c8aad58091054/diff",
"MergedDir": "/mnt/lightwhale-data/docker/overlay2/a9c1dd49cd31e890e1fbeb8633cab58504e7e031822ec720e74d3a2526f8c694/merged",
"UpperDir": "/mnt/lightwhale-data/docker/overlay2/a9c1dd49cd31e890e1fbeb8633cab58504e7e031822ec720e74d3a2526f8c694/diff",
"WorkDir": "/mnt/lightwhale-data/docker/overlay2/a9c1dd49cd31e890e1fbeb8633cab58504e7e031822ec720e74d3a2526f8c694/work"
},
"Name": "overlay2"
},
"Mounts": [],
"Config": {
"Hostname": "58fd588e1604",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"80/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"NGINX_VERSION=1.25.2",
"PKG_RELEASE=1",
"NJS_VERSION=0.8.0"
],
"Cmd": [
"nginx",
"-g",
"daemon off;"
],
"Image": "nginx:1.25.2-alpine@sha256:4c93a3bd8bf95412889dd84213570102176b6052d88bb828eaf449c56aca55ef",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": {
"com.docker.swarm.node.id": "u76h6xar8mb5ppuqshumlqfg9",
"com.docker.swarm.service.id": "rfdkkfpluyjk94o6q3ytf0ki5",
"com.docker.swarm.service.name": "www",
"com.docker.swarm.task": "",
"com.docker.swarm.task.id": "zvmo0rdapfrgpz4qx10ja6qz4",
"com.docker.swarm.task.name": "www.1.zvmo0rdapfrgpz4qx10ja6qz4",
"maintainer": "NGINX Docker Maintainers <docker-maint@nginx.com>"
},
"StopSignal": "SIGQUIT"
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "4a132810258da8b94e002f3878affa05f57b77f682d830bbadce1e5ffe6fef55",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"80/tcp": null
},
"SandboxKey": "/var/run/docker/netns/4a132810258d",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"ingress": {
"IPAMConfig": {
"IPv4Address": "10.22.0.4"
},
"Links": null,
"Aliases": [
"58fd588e1604"
],
"NetworkID": "a9rwtcuos38b17o7lxqrtndez",
"EndpointID": "b5fe807d5f1ba594a29f6b9ff0930365ed355479ae9358682304b426d8ed3094",
"Gateway": "",
"IPAddress": "10.22.0.4",
"IPPrefixLen": 24,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:0a:16:00:04",
"DriverOpts": null
},
"www-net": {
"IPAMConfig": {
"IPv4Address": "10.22.1.3"
},
"Links": null,
"Aliases": [
"58fd588e1604"
],
"NetworkID": "1jio72n635ftl4pgvayup2vpi",
"EndpointID": "2ec12414857d333d68f9f6c978c01a04608c45bad474aa05cd66ed7200b552fa",
"Gateway": "",
"IPAddress": "10.22.1.3",
"IPPrefixLen": 24,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:0a:16:01:03",
"DriverOpts": null
}
}
}
}
]
Using host networking mode “works”, in that it allows me to connect. But host networking is not what I want, and I’d consider it a work-around in this case. First and foremost I’d really like swarm to work. And I’d also like to experiment with swarm mesh routing.