Skip to content

Instantly share code, notes, and snippets.

@githubsaturn
Created November 10, 2021 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save githubsaturn/5cb2bacd059025d763d0717e5cb3ef9b to your computer and use it in GitHub Desktop.
Save githubsaturn/5cb2bacd059025d763d0717e5cb3ef9b to your computer and use it in GitHub Desktop.
~ docker inspect captain-overlay-network         
[
    {
        "Name": "captain-overlay-network",
        "Id": "z7x41ato6nhodqz03pvsdadmh",
        "Created": "2021-10-27T01:53:08.549111816Z",
        "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": true,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "3c2c7a402ce723b3811f9c4bddf47f2dc2dd2b33d7ed8e87a56d4e70759ec908": {
                "Name": "srv-captain--demo-nodejs.1.9jh0a4tg63ip7sqphcqb6gggi",
                "EndpointID": "d7aa16ceb77c07cd89a9309e2ae5e6534dbf8fe02325401dba9d273ec38be897",
                "MacAddress": "02:42:0a:00:00:07",
                "IPv4Address": "10.0.0.7/24",
                "IPv6Address": ""
            },
            "465a68d842985f78f408843641b647253c8c397011fbef9a8157528e60022254": {
                "Name": "captain-netdata-container",
                "EndpointID": "f5db5117ebdfaf20eeebcd54a8ebc443e763ba625e04cdc5512ee8a50d307a73",
                "MacAddress": "02:42:0a:00:00:02",
                "IPv4Address": "10.0.0.2/24",
                "IPv6Address": ""
            },
            "78b2ccc37c1009bba80f71e0ade8342fa66ac137bbc01d9849504ddba3c4be42": {
                "Name": "srv-captain--kuma.1.ul2ghq1ux25y9oiaqz3yjrg8u",
                "EndpointID": "1be3e56a3f04884e0258c7544df87e797e840030f8654616af3ae473c91b1df9",
                "MacAddress": "02:42:0a:00:00:16",
                "IPv4Address": "10.0.0.22/24",
                "IPv6Address": ""
            },
            "bb926722ab83483a0948698c9a46162c293285f0bec0fac4ef36f2735f046966": {
                "Name": "srv-captain--wordpress-db.1.a6tuatx9c0vyc1ntt616b453e",
                "EndpointID": "071dbc41d7db6ce881c2654c4b6a04e439db67b9566d8c6694552f43cfe2c702",
                "MacAddress": "02:42:0a:00:00:05",
                "IPv4Address": "10.0.0.5/24",
                "IPv6Address": ""
            },
            "c9832ed0c4e3675963c234422f01c763ccb7f833878a1b944d380d3507b6adeb": {
                "Name": "srv-captain--wordpress-wordpress.1.msv6u3q3s85zk16gx1mdd0c7w",
                "EndpointID": "98a35eb4f7f0042797300d874023b797489f9bf31110b42137565c9719bf10b8",
                "MacAddress": "02:42:0a:00:00:0b",
                "IPv4Address": "10.0.0.11/24",
                "IPv6Address": ""
            },
            "cd5d0e767929e2949a1a2357db1461f97be798cf49056287ce67c08499d76f42": {
                "Name": "captain-nginx.1.rd8d25m4muauh755egpixul0x",
                "EndpointID": "f12f6d810d3b86f1d1cb8854417ab2169076b3fca629a189d03bf7bfaf689ff1",
                "MacAddress": "02:42:0a:00:00:1e",
                "IPv4Address": "10.0.0.30/24",
                "IPv6Address": ""
            },
            "df5a628fd3b9d38c8e2a35c5367bea2b6646d57784cf72a82e43175cbda9f9e7": {
                "Name": "captain-captain.1.g0xqzgvaieulqygxnkma1ddeq",
                "EndpointID": "0da495d6b1d6b31d60597251041b035c1721d8cd0f44d12a90aaafb94da1fbf6",
                "MacAddress": "02:42:0a:00:00:1c",
                "IPv4Address": "10.0.0.28/24",
                "IPv6Address": ""
            },
            "e78282959e12160dbbdb67db71cca0e10ce8a907f9b87b6eb8e56c2562396b46": {
                "Name": "srv-captain--demo-php.1.oy3az3ffcaplyydahd5b7ztzz",
                "EndpointID": "0055431612cf736274bd2491e60dfd5b30e309d5e389bf54206b72d8823db799",
                "MacAddress": "02:42:0a:00:00:06",
                "IPv4Address": "10.0.0.6/24",
                "IPv6Address": ""
            },
            "lb-captain-overlay-network": {
                "Name": "captain-overlay-network-endpoint",
                "EndpointID": "47e1a26150108c84a31192c945254ce98ee730ae2d11814cf215362e8dcf0bb6",
                "MacAddress": "02:42:0a:00:00:0a",
                "IPv4Address": "10.0.0.10/24",
                "IPv6Address": ""
            }
        },
        "Options": {
            "com.docker.network.driver.overlay.vxlanid_list": "4097"
        },
        "Labels": {},
        "Peers": [
            {
                "Name": "14dc7fecd138",
                "IP": "134.209.8.6"
            }
        ]
    }
]



➜  ~ docker exec -it $(docker container ls --filter name=captain-nginx | awk 'FNR == 2 {print $1}') curl -vI captain-captain:3000
* Expire in 0 ms for 6 (transfer 0x5608da9a2fb0)
* Expire in 1 ms for 1 (transfer 0x5608da9a2fb0)
* Expire in 0 ms for 1 (transfer 0x5608da9a2fb0)
* Expire in 2 ms for 1 (transfer 0x5608da9a2fb0)
* Expire in 0 ms for 1 (transfer 0x5608da9a2fb0)
* Expire in 0 ms for 1 (transfer 0x5608da9a2fb0)
* Expire in 4 ms for 1 (transfer 0x5608da9a2fb0)
* Expire in 1 ms for 1 (transfer 0x5608da9a2fb0)
* Expire in 1 ms for 1 (transfer 0x5608da9a2fb0)
* Expire in 1 ms for 1 (transfer 0x5608da9a2fb0)
*   Trying 10.0.0.3...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x5608da9a2fb0)
* Connected to captain-captain (10.0.0.3) port 3000 (#0)
> HEAD / HTTP/1.1
> Host: captain-captain:3000
> User-Agent: curl/7.64.0
> Accept: */*
> 
< HTTP/1.1 302 Found
HTTP/1.1 302 Found
< X-Powered-By: Express
X-Powered-By: Express
< Location: https://captain-captain:3000/
Location: https://captain-captain:3000/
< Vary: Accept
Vary: Accept
< Content-Type: text/plain; charset=utf-8
Content-Type: text/plain; charset=utf-8
< Content-Length: 51
Content-Length: 51
< Date: Wed, 10 Nov 2021 04:02:25 GMT
Date: Wed, 10 Nov 2021 04:02:25 GMT
< Connection: keep-alive
Connection: keep-alive
< Keep-Alive: timeout=5
Keep-Alive: timeout=5

< 
* Connection #0 to host captain-captain left intact~ docker exec -it $(docker container ls --filter name=captain-nginx | awk 'FNR == 2 {print $1}') curl -vI 10.0.0.28:3000      
* Expire in 0 ms for 6 (transfer 0x561dddb3efb0)
*   Trying 10.0.0.28...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x561dddb3efb0)
* Connected to 10.0.0.28 (10.0.0.28) port 3000 (#0)
> HEAD / HTTP/1.1
> Host: 10.0.0.28:3000
> User-Agent: curl/7.64.0
> Accept: */*
> 
< HTTP/1.1 302 Found
HTTP/1.1 302 Found
< X-Powered-By: Express
X-Powered-By: Express
< Location: https://10.0.0.28:3000/
Location: https://10.0.0.28:3000/
< Vary: Accept
Vary: Accept
< Content-Type: text/plain; charset=utf-8
Content-Type: text/plain; charset=utf-8
< Content-Length: 45
Content-Length: 45
< Date: Wed, 10 Nov 2021 04:02:45 GMT
Date: Wed, 10 Nov 2021 04:02:45 GMT
< Connection: keep-alive
Connection: keep-alive
< Keep-Alive: timeout=5
Keep-Alive: timeout=5

< 
* Connection #0 to host 10.0.0.28 left intact~~ docker container inspect captain-captain.1.g0xqzgvaieulqygxnkma1ddeq
[
    {
        "Id": "df5a628fd3b9d38c8e2a35c5367bea2b6646d57784cf72a82e43175cbda9f9e7",
        "Created": "2021-11-03T20:16:23.81761544Z",
        "Path": "docker-entrypoint.sh",
        "Args": [
            "node",
            "./built/server.js"
        ],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 26243,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2021-11-03T20:16:29.535631044Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        "Image": "sha256:4f0b4b51b3e10e41333b498dc26c01a18f2b1a2e591bb99dd0ecd7677b41a8ab",
        "ResolvConfPath": "/var/lib/docker/containers/df5a628fd3b9d38c8e2a35c5367bea2b6646d57784cf72a82e43175cbda9f9e7/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/df5a628fd3b9d38c8e2a35c5367bea2b6646d57784cf72a82e43175cbda9f9e7/hostname",
        "HostsPath": "/var/lib/docker/containers/df5a628fd3b9d38c8e2a35c5367bea2b6646d57784cf72a82e43175cbda9f9e7/hosts",
        "LogPath": "/var/lib/docker/containers/df5a628fd3b9d38c8e2a35c5367bea2b6646d57784cf72a82e43175cbda9f9e7/df5a628fd3b9d38c8e2a35c5367bea2b6646d57784cf72a82e43175cbda9f9e7-json.log",
        "Name": "/captain-captain.1.g0xqzgvaieulqygxnkma1ddeq",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": null,
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {
                    "max-size": "512m"
                }
            },
            "NetworkMode": "default",
            "PortBindings": {},
            "RestartPolicy": {
                "Name": "",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "host",
            "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",
            "ConsoleSize": [
                0,
                0
            ],
            "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,
            "KernelMemory": 0,
            "KernelMemoryTCP": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": false,
            "PidsLimit": null,
            "Ulimits": [],
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "Mounts": [
                {
                    "Type": "bind",
                    "Source": "/captain",
                    "Target": "/captain"
                },
                {
                    "Type": "bind",
                    "Source": "/var/run/docker.sock",
                    "Target": "/var/run/docker.sock"
                }
            ],
            "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"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/c910ec5f7a7dcf498dc5ffe3935b424f0b502136e632431ef83ca86a31535146-init/diff:/var/lib/docker/overlay2/a35cf73d4ed917290147055da44764ba413659331d3ff7a5eae3f4766793414f/diff:/var/lib/docker/overlay2/add301f2a9ecac54592effc978cda1fbf0f5c5646f0e4fcc787324352eec0a55/diff:/var/lib/docker/overlay2/d4c3ea5c65f08d0a425ce04413d7a2e2df25e42c3cf9ec71a0bcb81c5069f6fe/diff:/var/lib/docker/overlay2/79173092b6d2d7e1556aa34d97e7810ccda1571f61413bf12ae1e8053128d0f1/diff:/var/lib/docker/overlay2/f9a6c97c2fad0b82a538bd2529a33c625f7ed3b74164be0151ff832547be3eb8/diff:/var/lib/docker/overlay2/cb593a9cf4db6d6a140cd90444ccbb0ac4c1b35281a285c778bbcc8e5abaab91/diff:/var/lib/docker/overlay2/4f1663b9474a38d1b1f59974cb6b404b2fbc1c0190b79dcb8fa2791c3f6ab3bc/diff:/var/lib/docker/overlay2/6daefaed6d8ee2a4ddff58df82e0ce505371a0abe55a9f21d23d49ba1c6492a2/diff:/var/lib/docker/overlay2/d52df539afa581986e966294615ba9d9c7993836786644042505c31ce7c13f47/diff:/var/lib/docker/overlay2/5a409ca87766652e86effc124287257621cc884aaa49fef1e441892c0ad3f93e/diff:/var/lib/docker/overlay2/df2442a3f680b4303e3b96630785c349f97b51386039ad15d94cb86c3b30e77e/diff:/var/lib/docker/overlay2/be9ddc15e18277b327292e5b69672b9526d236826280077e8ab966e64789b0a5/diff:/var/lib/docker/overlay2/f0a35cf7c4fcf73c28058c2d90b51a94fc03873519ff5f302d11b997e6735c5e/diff:/var/lib/docker/overlay2/3d0f8fe0ed6cb3ee5ee73579959889e9df9a2ab7f5b50682571715f0a8dcf5fb/diff:/var/lib/docker/overlay2/17d1749825b4c0cfe01f99a5b81794fd38fdec27662828ecc41cc2164f0c1bfa/diff",
                "MergedDir": "/var/lib/docker/overlay2/c910ec5f7a7dcf498dc5ffe3935b424f0b502136e632431ef83ca86a31535146/merged",
                "UpperDir": "/var/lib/docker/overlay2/c910ec5f7a7dcf498dc5ffe3935b424f0b502136e632431ef83ca86a31535146/diff",
                "WorkDir": "/var/lib/docker/overlay2/c910ec5f7a7dcf498dc5ffe3935b424f0b502136e632431ef83ca86a31535146/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/var/run/docker.sock",
                "Destination": "/var/run/docker.sock",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/captain",
                "Destination": "/captain",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "df5a628fd3b9",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "3000/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "IS_CAPTAIN_INSTANCE=1",
                "IS_DEMO_MODE=true",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "NODE_VERSION=14.18.0",
                "YARN_VERSION=1.22.5",
                "NODE_ENV=production",
                "PORT=3000"
            ],
            "Cmd": [
                "node",
                "./built/server.js"
            ],
            "Image": "caprover/caprover-edge:latest@sha256:55b36c83b0762bc1568421f3cd9f4a5e6ddec272938926c3e0f49a4d568bfd03",
            "Volumes": null,
            "WorkingDir": "/usr/src/app",
            "Entrypoint": [
                "docker-entrypoint.sh"
            ],
            "OnBuild": null,
            "Labels": {
                "com.docker.swarm.node.id": "pp749r4hlvfo69dcma0qzirev",
                "com.docker.swarm.service.id": "h11voun39dvzonoq3l0ujsb7x",
                "com.docker.swarm.service.name": "captain-captain",
                "com.docker.swarm.task": "",
                "com.docker.swarm.task.id": "g0xqzgvaieulqygxnkma1ddeq",
                "com.docker.swarm.task.name": "captain-captain.1.g0xqzgvaieulqygxnkma1ddeq",
                "randomLabelForceUpdate": "c3181a26-9b71-4298-b9cc-3897657a2885"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "93af91b7ffa3ee0af5eb6b008127b4e99637cdd116cd8ed8ed2d56c7771bf348",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "3000/tcp": null
            },
            "SandboxKey": "/var/run/docker/netns/93af91b7ffa3",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "captain-overlay-network": {
                    "IPAMConfig": {
                        "IPv4Address": "10.0.0.28"
                    },
                    "Links": null,
                    "Aliases": [
                        "df5a628fd3b9"
                    ],
                    "NetworkID": "z7x41ato6nhodqz03pvsdadmh",
                    "EndpointID": "0da495d6b1d6b31d60597251041b035c1721d8cd0f44d12a90aaafb94da1fbf6",
                    "Gateway": "",
                    "IPAddress": "10.0.0.28",
                    "IPPrefixLen": 24,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:0a:00:00:1c",
                    "DriverOpts": null
                },
                "ingress": {
                    "IPAMConfig": {
                        "IPv4Address": "10.255.0.9"
                    },
                    "Links": null,
                    "Aliases": [
                        "df5a628fd3b9"
                    ],
                    "NetworkID": "wpe945dly98ui5e6y0jwkiti9",
                    "EndpointID": "54c728b99e376640d3cb1c11cbd546b4f9ff8f7b11a00032c79468791cf916a1",
                    "Gateway": "",
                    "IPAddress": "10.255.0.9",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:0a:ff:00:09",
                    "DriverOpts": null
                }
            }
        }
    }
]






➜  ~~ docker service inspect captain-captain                              
[
    {
        "ID": "h11voun39dvzonoq3l0ujsb7x",
        "Version": {
            "Index": 111937
        },
        "CreatedAt": "2019-02-12T04:37:55.984315969Z",
        "UpdatedAt": "2021-10-27T01:53:07.822364643Z",
        "Spec": {
            "Name": "captain-captain",
            "Labels": {
                "registry-added": ""
            },
            "TaskTemplate": {
                "ContainerSpec": {
                    "Image": "caprover/caprover-edge:latest@sha256:55b36c83b0762bc1568421f3cd9f4a5e6ddec272938926c3e0f49a4d568bfd03",
                    "Labels": {
                        "randomLabelForceUpdate": "c3181a26-9b71-4298-b9cc-3897657a2885"
                    },
                    "Env": [
                        "IS_CAPTAIN_INSTANCE=1",
                        "IS_DEMO_MODE=true"
                    ],
                    "Mounts": [
                        {
                            "Type": "bind",
                            "Source": "/captain",
                            "Target": "/captain"
                        },
                        {
                            "Type": "bind",
                            "Source": "/var/run/docker.sock",
                            "Target": "/var/run/docker.sock"
                        }
                    ],
                    "StopGracePeriod": 10000000000,
                    "DNSConfig": {},
                    "Secrets": [
                        {
                            "File": {
                                "Name": "captain-salt",
                                "UID": "0",
                                "GID": "0",
                                "Mode": 292
                            },
                            "SecretID": "g2x2xxggfioxj32dn2cab8lz9",
                            "SecretName": "captain-salt"
                        }
                    ],
                    "Isolation": "default"
                },
                "Resources": {},
                "RestartPolicy": {
                    "Condition": "any",
                    "Delay": 5000000000,
                    "MaxAttempts": 0
                },
                "Placement": {
                    "Constraints": [
                        "node.id == pp749r4hlvfo69dcma0qzirev"
                    ],
                    "Platforms": [
                        {
                            "Architecture": "amd64",
                            "OS": "linux"
                        },
                        {
                            "Architecture": "arm64",
                            "OS": "linux"
                        },
                        {
                            "OS": "linux"
                        }
                    ]
                },
                "Networks": [
                    {
                        "Target": "z7x41ato6nhodqz03pvsdadmh"
                    }
                ],
                "LogDriver": {
                    "Name": "json-file",
                    "Options": {
                        "max-size": "512m"
                    }
                },
                "ForceUpdate": 20,
                "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": 3000,
                        "PublishedPort": 3000,
                        "PublishMode": "ingress"
                    }
                ]
            }
        },
        "PreviousSpec": {
            "Name": "captain-captain",
            "Labels": {
                "registry-added": ""
            },
            "TaskTemplate": {
                "ContainerSpec": {
                    "Image": "caprover/caprover-edge:0.0.1@sha256:0eca2e037ba7102dbe2cdfb9fa15ab659f357935438adf09ae86823fc5c1bb7b",
                    "Labels": {
                        "randomLabelForceUpdate": "c3181a26-9b71-4298-b9cc-3897657a2885"
                    },
                    "Env": [
                        "IS_CAPTAIN_INSTANCE=1",
                        "IS_DEMO_MODE=true"
                    ],
                    "Mounts": [
                        {
                            "Type": "bind",
                            "Source": "/captain",
                            "Target": "/captain"
                        },
                        {
                            "Type": "bind",
                            "Source": "/var/run/docker.sock",
                            "Target": "/var/run/docker.sock"
                        }
                    ],
                    "Secrets": [
                        {
                            "File": {
                                "Name": "captain-salt",
                                "UID": "0",
                                "GID": "0",
                                "Mode": 292
                            },
                            "SecretID": "g2x2xxggfioxj32dn2cab8lz9",
                            "SecretName": "captain-salt"
                        }
                    ],
                    "Isolation": "default"
                },
                "Resources": {},
                "Placement": {
                    "Constraints": [
                        "node.id == pp749r4hlvfo69dcma0qzirev"
                    ],
                    "Platforms": [
                        {
                            "Architecture": "amd64",
                            "OS": "linux"
                        },
                        {
                            "Architecture": "arm64",
                            "OS": "linux"
                        },
                        {
                            "OS": "linux"
                        }
                    ]
                },
                "Networks": [
                    {
                        "Target": "z7x41ato6nhodqz03pvsdadmh"
                    }
                ],
                "LogDriver": {
                    "Name": "json-file",
                    "Options": {
                        "max-size": "512m"
                    }
                },
                "ForceUpdate": 20,
                "Runtime": "container"
            },
            "Mode": {
                "Replicated": {
                    "Replicas": 1
                }
            },
            "EndpointSpec": {
                "Mode": "vip",
                "Ports": [
                    {
                        "Protocol": "tcp",
                        "TargetPort": 3000,
                        "PublishedPort": 3000,
                        "PublishMode": "ingress"
                    }
                ]
            }
        },
        "Endpoint": {
            "Spec": {
                "Mode": "vip",
                "Ports": [
                    {
                        "Protocol": "tcp",
                        "TargetPort": 3000,
                        "PublishedPort": 3000,
                        "PublishMode": "ingress"
                    }
                ]
            },
            "Ports": [
                {
                    "Protocol": "tcp",
                    "TargetPort": 3000,
                    "PublishedPort": 3000,
                    "PublishMode": "ingress"
                }
            ],
            "VirtualIPs": [
                {
                    "NetworkID": "wpe945dly98ui5e6y0jwkiti9",
                    "Addr": "10.255.0.3/16"
                },
                {
                    "NetworkID": "z7x41ato6nhodqz03pvsdadmh",
                    "Addr": "10.0.0.3/24"
                }
            ]
        },
        "UpdateStatus": {
            "State": "completed",
            "StartedAt": "2021-10-10T19:40:18.835080692Z",
            "CompletedAt": "2021-10-10T19:40:39.215983852Z",
            "Message": "update completed"
        }
    }
]
➜  ~ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment