mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-02-14 23:19:37 +00:00
* Fix getting Supervisor IP address in testing Newer Docker versions (probably newer than 29.x) do not have a global IPAddress attribute under .NetworkSettings anymore. There is a network specific map under Networks. For our case the hassio has the relevant IP address. This network specific maps already existed before, hence the new inspect format works for old as well as new Docker versions. While at it, also adjust the test fixture. * Actively wait for hassio IPAddress to become valid
240 lines
7.8 KiB
JSON
240 lines
7.8 KiB
JSON
{
|
|
"Id": "986e5efadb228654f1719735e802fecc099136e4640155887946246a87fc584a",
|
|
"Created": "2022-09-21T18:54:13.269240742Z",
|
|
"Path": "/init",
|
|
"Args": [],
|
|
"State": {
|
|
"Status": "running",
|
|
"Running": true,
|
|
"Paused": false,
|
|
"Restarting": false,
|
|
"OOMKilled": false,
|
|
"Dead": false,
|
|
"Pid": 2723,
|
|
"ExitCode": 0,
|
|
"Error": "",
|
|
"StartedAt": "2022-09-21T18:54:14.124021953Z",
|
|
"FinishedAt": "0001-01-01T00:00:00Z"
|
|
},
|
|
"Image": "sha256:bc34c81c040474bdc005e52857c04103702b081f58b70d5dbcdfc8261a03a4d9",
|
|
"ResolvConfPath": "/mnt/data/docker/containers/986e5efadb228654f1719735e802fecc099136e4640155887946246a87fc584a/resolv.conf",
|
|
"HostnamePath": "/mnt/data/docker/containers/986e5efadb228654f1719735e802fecc099136e4640155887946246a87fc584a/hostname",
|
|
"HostsPath": "/mnt/data/docker/containers/986e5efadb228654f1719735e802fecc099136e4640155887946246a87fc584a/hosts",
|
|
"LogPath": "",
|
|
"Name": "/addon_core_mosquitto",
|
|
"RestartCount": 0,
|
|
"Driver": "overlay2",
|
|
"Platform": "linux",
|
|
"MountLabel": "",
|
|
"ProcessLabel": "",
|
|
"AppArmorProfile": "docker-default",
|
|
"ExecIDs": null,
|
|
"HostConfig": {
|
|
"Binds": [
|
|
"/dev:/dev:ro",
|
|
"/mnt/data/supervisor/addons/data/core_mosquitto:/data:rw",
|
|
"/mnt/data/supervisor/ssl:/ssl:ro",
|
|
"/mnt/data/supervisor/share:/share:ro"
|
|
],
|
|
"ContainerIDFile": "",
|
|
"LogConfig": { "Type": "journald", "Config": { "tag": "{{.Name}}" } },
|
|
"NetworkMode": "default",
|
|
"PortBindings": { "1883/tcp": [{ "HostIp": "", "HostPort": "1883" }] },
|
|
"RestartPolicy": { "Name": "", "MaximumRetryCount": 0 },
|
|
"AutoRemove": false,
|
|
"VolumeDriver": "",
|
|
"VolumesFrom": null,
|
|
"CapAdd": null,
|
|
"CapDrop": null,
|
|
"CgroupnsMode": "private",
|
|
"Dns": ["172.30.32.3"],
|
|
"DnsOptions": null,
|
|
"DnsSearch": ["local.hass.io"],
|
|
"ExtraHosts": ["hassio:172.30.32.2", "supervisor:172.30.32.2"],
|
|
"GroupAdd": null,
|
|
"IpcMode": "private",
|
|
"Cgroup": "",
|
|
"Links": null,
|
|
"OomScoreAdj": 200,
|
|
"PidMode": "",
|
|
"Privileged": false,
|
|
"PublishAllPorts": false,
|
|
"ReadonlyRootfs": false,
|
|
"SecurityOpt": ["seccomp=unconfined"],
|
|
"Tmpfs": { "/dev/shm": "" },
|
|
"UTSMode": "",
|
|
"UsernsMode": "",
|
|
"ShmSize": 67108864,
|
|
"Runtime": "runc",
|
|
"ConsoleSize": [0, 0],
|
|
"Isolation": "",
|
|
"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": [
|
|
"/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/data/docker/overlay2/1b79280bcdd879c0df64ee41755c70610cf3b650cea299c6f30081338bf745e5-init/diff:/mnt/data/docker/overlay2/2c22d6a27a68fb384f85d4bb833f7ac7956fcbb93be9f731e6deb76bb9420011/diff:/mnt/data/docker/overlay2/42ce3dc994391b83f90bf599f887a8e0fdc2ee24cec9b14f491412f1dae11714/diff:/mnt/data/docker/overlay2/9f7c5f5a2aa9a324c75f9c54fbee648bee86d963c4ad6fde2cb3ca0d3f886287/diff:/mnt/data/docker/overlay2/8a4cd2bb72bb673a42186a1b94aaf1bbba1f1e35953fea91e6ccc2c08b0c7dc8/diff:/mnt/data/docker/overlay2/eb50a9462c19acb312d44e3455579f84f3ef256e410c4992554f1527fbd2b9dc/diff:/mnt/data/docker/overlay2/d38688df678f243a89c055f768b5ec80f1ce0686ed28940fcc4430edc5b311a0/diff",
|
|
"MergedDir": "/mnt/data/docker/overlay2/1b79280bcdd879c0df64ee41755c70610cf3b650cea299c6f30081338bf745e5/merged",
|
|
"UpperDir": "/mnt/data/docker/overlay2/1b79280bcdd879c0df64ee41755c70610cf3b650cea299c6f30081338bf745e5/diff",
|
|
"WorkDir": "/mnt/data/docker/overlay2/1b79280bcdd879c0df64ee41755c70610cf3b650cea299c6f30081338bf745e5/work"
|
|
},
|
|
"Name": "overlay2"
|
|
},
|
|
"Mounts": [
|
|
{
|
|
"Type": "bind",
|
|
"Source": "/dev",
|
|
"Destination": "/dev",
|
|
"Mode": "ro",
|
|
"RW": false,
|
|
"Propagation": "rprivate"
|
|
},
|
|
{
|
|
"Type": "bind",
|
|
"Source": "/mnt/data/supervisor/addons/data/core_mosquitto",
|
|
"Destination": "/data",
|
|
"Mode": "rw",
|
|
"RW": true,
|
|
"Propagation": "rprivate"
|
|
},
|
|
{
|
|
"Type": "bind",
|
|
"Source": "/mnt/data/supervisor/ssl",
|
|
"Destination": "/ssl",
|
|
"Mode": "ro",
|
|
"RW": false,
|
|
"Propagation": "rprivate"
|
|
},
|
|
{
|
|
"Type": "bind",
|
|
"Source": "/mnt/data/supervisor/share",
|
|
"Destination": "/share",
|
|
"Mode": "ro",
|
|
"RW": false,
|
|
"Propagation": "rprivate"
|
|
}
|
|
],
|
|
"Config": {
|
|
"Hostname": "core-mosquitto",
|
|
"Domainname": "local.hass.io",
|
|
"User": "",
|
|
"AttachStdin": false,
|
|
"AttachStdout": false,
|
|
"AttachStderr": false,
|
|
"ExposedPorts": { "1883/tcp": {} },
|
|
"Tty": false,
|
|
"OpenStdin": false,
|
|
"StdinOnce": false,
|
|
"Env": [
|
|
"TZ=America/New_York",
|
|
"SUPERVISOR_TOKEN=abc123",
|
|
"HASSIO_TOKEN=abc123",
|
|
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
|
|
"LANG=C.UTF-8",
|
|
"DEBIAN_FRONTEND=noninteractive",
|
|
"CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt",
|
|
"S6_BEHAVIOUR_IF_STAGE2_FAILS=2",
|
|
"S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0",
|
|
"S6_CMD_WAIT_FOR_SERVICES=1"
|
|
],
|
|
"Cmd": null,
|
|
"Image": "homeassistant/aarch64-addon-mosquitto:6.1.3",
|
|
"Volumes": { "/data": {}, "/dev": {}, "/share": {}, "/ssl": {} },
|
|
"WorkingDir": "/",
|
|
"Entrypoint": ["/init"],
|
|
"OnBuild": null,
|
|
"Labels": {
|
|
"io.hass.arch": "aarch64",
|
|
"io.hass.base.arch": "aarch64",
|
|
"io.hass.base.image": "arm64v8/debian:bullseye-slim",
|
|
"io.hass.base.name": "debian",
|
|
"io.hass.base.version": "2022.08.0",
|
|
"io.hass.description": "An Open Source MQTT broker",
|
|
"io.hass.name": "Mosquitto broker",
|
|
"io.hass.type": "addon",
|
|
"io.hass.url": "https://github.com/home-assistant/hassio-addons/tree/master/mosquitto",
|
|
"io.hass.version": "6.1.3",
|
|
"org.opencontainers.image.created": "2022-08-30 07:33:03+00:00",
|
|
"org.opencontainers.image.source": "https://github.com/home-assistant/docker-base",
|
|
"org.opencontainers.image.version": "6.1.3",
|
|
"supervisor_managed": ""
|
|
}
|
|
},
|
|
"NetworkSettings": {
|
|
"SandboxID": "067cd11a63f96d227dcc0f01d3e4f5053c368021becd0b4b2da4f301cfda3d29",
|
|
"SandboxKey": "/var/run/docker/netns/067cd11a63f9",
|
|
"Ports": {
|
|
"1883/tcp": [
|
|
{ "HostIp": "0.0.0.0", "HostPort": "1883" },
|
|
{ "HostIp": "::", "HostPort": "1883" }
|
|
]
|
|
},
|
|
"Networks": {
|
|
"hassio": {
|
|
"IPAMConfig": null,
|
|
"Links": null,
|
|
"Aliases": ["core-mosquitto", "986e5efadb22"],
|
|
"NetworkID": "cd10b1eb5f4a1cd5179839f81ccdadd29545eaa0b921454d1a2e0452c12d6935",
|
|
"EndpointID": "9b2c58f4595618241bb45df028c95f2713bb0b1b6326d3bdab2366e2caadbe7b",
|
|
"Gateway": "172.30.32.1",
|
|
"IPAddress": "172.30.33.1",
|
|
"IPPrefixLen": 23,
|
|
"IPv6Gateway": "",
|
|
"GlobalIPv6Address": "",
|
|
"GlobalIPv6PrefixLen": 0,
|
|
"MacAddress": "02:42:ac:1e:21:01",
|
|
"DriverOpts": null
|
|
}
|
|
}
|
|
}
|
|
}
|