mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-22 06:57:49 +00:00
8e65466f2d
In order to make supervisor upgrades more transparent, lets move away from this env var since it requires a container restart any time the supervisor is upgraded. We should ultimately move towards providing the supervisors set of capabilities, but that can come later Connects-to: #1447 Change-type: major Signed-off-by: Matthew McGinn <matthew@balena.io>
269 lines
8.5 KiB
JSON
269 lines
8.5 KiB
JSON
{
|
|
"Id": "4d325eab9c62f1f88525d8dbd13bb00cc3aac5fa6110d804eaf43266d858968b",
|
|
"Created": "2020-06-17T10:14:31.931188125Z",
|
|
"Path": "/usr/bin/entry.sh",
|
|
"Args": ["/bin/sh", "-c", "while true; do echo 'hello'; sleep 20; done;"],
|
|
"State": {
|
|
"Status": "running",
|
|
"Running": true,
|
|
"Paused": false,
|
|
"Restarting": false,
|
|
"OOMKilled": false,
|
|
"Dead": false,
|
|
"Pid": 2319,
|
|
"ExitCode": 0,
|
|
"Error": "",
|
|
"StartedAt": "2020-06-17T10:14:33.770739066Z",
|
|
"FinishedAt": "0001-01-01T00:00:00Z"
|
|
},
|
|
"Image": "sha256:549682dc9a699a40ddcfe221f22c5d4d6603e068caa682121e69f1abc941bae0",
|
|
"ResolvConfPath": "/var/lib/docker/containers/4d325eab9c62f1f88525d8dbd13bb00cc3aac5fa6110d804eaf43266d858968b/resolv.conf",
|
|
"HostnamePath": "/var/lib/docker/containers/4d325eab9c62f1f88525d8dbd13bb00cc3aac5fa6110d804eaf43266d858968b/hostname",
|
|
"HostsPath": "/var/lib/docker/containers/4d325eab9c62f1f88525d8dbd13bb00cc3aac5fa6110d804eaf43266d858968b/hosts",
|
|
"LogPath": "",
|
|
"Name": "/main_2388278_1421617",
|
|
"RestartCount": 0,
|
|
"Driver": "overlay2",
|
|
"Platform": "linux",
|
|
"MountLabel": "",
|
|
"ProcessLabel": "",
|
|
"AppArmorProfile": "",
|
|
"ExecIDs": null,
|
|
"HostConfig": {
|
|
"Binds": [
|
|
"/tmp/balena-supervisor/services/1623449/main:/tmp/resin",
|
|
"/tmp/balena-supervisor/services/1623449/main:/tmp/balena"
|
|
],
|
|
"ContainerIDFile": "",
|
|
"ContainerIDEnv": "",
|
|
"LogConfig": {
|
|
"Type": "journald",
|
|
"Config": {}
|
|
},
|
|
"NetworkMode": "1623449_default",
|
|
"PortBindings": {},
|
|
"RestartPolicy": {
|
|
"Name": "always",
|
|
"MaximumRetryCount": 0
|
|
},
|
|
"AutoRemove": false,
|
|
"VolumeDriver": "",
|
|
"VolumesFrom": null,
|
|
"CapAdd": [],
|
|
"CapDrop": [],
|
|
"Dns": [],
|
|
"DnsOptions": [],
|
|
"DnsSearch": [],
|
|
"ExtraHosts": [],
|
|
"GroupAdd": [],
|
|
"IpcMode": "shareable",
|
|
"Cgroup": "",
|
|
"Links": null,
|
|
"OomScoreAdj": 0,
|
|
"PidMode": "",
|
|
"Privileged": false,
|
|
"PublishAllPorts": false,
|
|
"ReadonlyRootfs": false,
|
|
"SecurityOpt": [],
|
|
"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": [],
|
|
"DeviceCgroupRules": null,
|
|
"DiskQuota": 0,
|
|
"KernelMemory": 0,
|
|
"MemoryReservation": 0,
|
|
"MemorySwap": 0,
|
|
"MemorySwappiness": null,
|
|
"OomKillDisable": false,
|
|
"PidsLimit": 0,
|
|
"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"
|
|
]
|
|
},
|
|
"GraphDriver": {
|
|
"Data": {
|
|
"LowerDir": "/var/lib/docker/overlay2/10c7a6d2bb4964dfcf56637abc7cac14aef5e91f919bfc3b8c6670f0a121d6e8-init/diff:/var/lib/docker/overlay2/1283af7b9f4f78f77f252bedc9fed3cffa7dbd4469b3a46c5e65a4d6560ecf05/diff:/var/lib/docker/overlay2/5e80bdb80b81b3606edd4fb615d47d7638db9a5e28aee5899ac93f26efbb93cc/diff:/var/lib/docker/overlay2/dbd26995c3078afee336f098a872b862af1aa81c6d0c0f4e83d020dbbafca482/diff:/var/lib/docker/overlay2/75281533b8fe3398dc245e2165b103852c10110586270c0355c811ca18799a65/diff:/var/lib/docker/overlay2/42dadaf9781dc225f26bdf269f099e8a7fdd8318b9b45e1398c6033d2aca6833/diff:/var/lib/docker/overlay2/79aba86b843635a93f98825a1b9500589efbb01933f2e51c967c805b920840a8/diff:/var/lib/docker/overlay2/606f9266610966302adf26f227cd60b5a677166824456b0b1fa92f674ffd1d2d/diff:/var/lib/docker/overlay2/9997deced056506163efa614a837a9cf8ec6512a58ec19570d58f0ffa3185c1c/diff:/var/lib/docker/overlay2/17d564f6212e651d51fe346ae47ab5ebc21324a6815d010a5f119ab0d0b1ac06/diff",
|
|
"MergedDir": "/var/lib/docker/overlay2/10c7a6d2bb4964dfcf56637abc7cac14aef5e91f919bfc3b8c6670f0a121d6e8/merged",
|
|
"UpperDir": "/var/lib/docker/overlay2/10c7a6d2bb4964dfcf56637abc7cac14aef5e91f919bfc3b8c6670f0a121d6e8/diff",
|
|
"WorkDir": "/var/lib/docker/overlay2/10c7a6d2bb4964dfcf56637abc7cac14aef5e91f919bfc3b8c6670f0a121d6e8/work"
|
|
},
|
|
"Name": "overlay2"
|
|
},
|
|
"Mounts": [
|
|
{
|
|
"Type": "bind",
|
|
"Source": "/tmp/balena-supervisor/services/1623449/main",
|
|
"Destination": "/tmp/balena",
|
|
"Mode": "",
|
|
"RW": true,
|
|
"Propagation": "rprivate"
|
|
},
|
|
{
|
|
"Type": "bind",
|
|
"Source": "/tmp/balena-supervisor/services/1623449/main",
|
|
"Destination": "/tmp/resin",
|
|
"Mode": "",
|
|
"RW": true,
|
|
"Propagation": "rprivate"
|
|
}
|
|
],
|
|
"Config": {
|
|
"Hostname": "4d325eab9c62",
|
|
"Domainname": "",
|
|
"User": "",
|
|
"AttachStdin": false,
|
|
"AttachStdout": false,
|
|
"AttachStderr": false,
|
|
"Tty": true,
|
|
"OpenStdin": false,
|
|
"StdinOnce": false,
|
|
"Env": [
|
|
"RESIN_DEVICE_NAME_AT_INIT=new-device-name",
|
|
"BALENA_DEVICE_NAME_AT_INIT=new-device-name",
|
|
"BALENA_APP_ID=1623449",
|
|
"BALENA_APP_NAME=pi4test",
|
|
"BALENA_SERVICE_NAME=main",
|
|
"BALENA_DEVICE_UUID=fa93b70d5873e0be95f0e16be0235b73",
|
|
"BALENA_DEVICE_TYPE=raspberrypi4-64",
|
|
"BALENA_DEVICE_ARCH=aarch64",
|
|
"BALENA_HOST_OS_VERSION=balenaOS 2.48.0+rev1",
|
|
"BALENA_APP_LOCK_PATH=/tmp/balena/updates.lock",
|
|
"BALENA=1",
|
|
"RESIN_APP_ID=1623449",
|
|
"RESIN_APP_NAME=pi4test",
|
|
"RESIN_SERVICE_NAME=main",
|
|
"RESIN_DEVICE_UUID=fa93b70d5873e0be95f0e16be0235b73",
|
|
"RESIN_DEVICE_TYPE=raspberrypi4-64",
|
|
"RESIN_DEVICE_ARCH=aarch64",
|
|
"RESIN_HOST_OS_VERSION=balenaOS 2.48.0+rev1",
|
|
"RESIN_APP_LOCK_PATH=/tmp/balena/updates.lock",
|
|
"RESIN=1",
|
|
"RESIN_SERVICE_KILL_ME_PATH=/tmp/balena/handover-complete",
|
|
"BALENA_SERVICE_HANDOVER_COMPLETE_PATH=/tmp/balena/handover-complete",
|
|
"USER=root",
|
|
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
|
|
"UDEV=off",
|
|
"RESIN_SUPERVISOR_PORT=48484",
|
|
"BALENA_SUPERVISOR_PORT=48484",
|
|
"RESIN_SUPERVISOR_API_KEY=c184f060f7862521fe915f323957157b",
|
|
"BALENA_SUPERVISOR_API_KEY=c184f060f7862521fe915f323957157b",
|
|
"RESIN_SUPERVISOR_HOST=127.0.0.1",
|
|
"BALENA_SUPERVISOR_HOST=127.0.0.1",
|
|
"RESIN_SUPERVISOR_ADDRESS=http://127.0.0.1:48484",
|
|
"BALENA_SUPERVISOR_ADDRESS=http://127.0.0.1:48484"
|
|
],
|
|
"Cmd": ["/bin/sh", "-c", "while true; do echo 'hello'; sleep 20; done;"],
|
|
"Healthcheck": {
|
|
"Test": ["NONE"]
|
|
},
|
|
"Image": "sha256:549682dc9a699a40ddcfe221f22c5d4d6603e068caa682121e69f1abc941bae0",
|
|
"Volumes": null,
|
|
"WorkingDir": "",
|
|
"Entrypoint": ["/usr/bin/entry.sh"],
|
|
"OnBuild": null,
|
|
"Labels": {
|
|
"io.balena.app-id": "1623449",
|
|
"io.balena.architecture": "aarch64",
|
|
"io.balena.features.supervisor-api": "1",
|
|
"io.balena.qemu.version": "4.0.0+balena2-aarch64",
|
|
"io.balena.service-id": "482141",
|
|
"io.balena.service-name": "main",
|
|
"io.balena.supervised": "true"
|
|
},
|
|
"StopSignal": "SIGTERM",
|
|
"StopTimeout": 10
|
|
},
|
|
"NetworkSettings": {
|
|
"Bridge": "",
|
|
"SandboxID": "612f15c4bcb17961430159a0c363002fb17659577b5444dfbea65c738012e5a9",
|
|
"HairpinMode": false,
|
|
"LinkLocalIPv6Address": "",
|
|
"LinkLocalIPv6PrefixLen": 0,
|
|
"Ports": {},
|
|
"SandboxKey": "/var/run/balena-engine/netns/612f15c4bcb1",
|
|
"SecondaryIPAddresses": null,
|
|
"SecondaryIPv6Addresses": null,
|
|
"EndpointID": "",
|
|
"Gateway": "",
|
|
"GlobalIPv6Address": "",
|
|
"GlobalIPv6PrefixLen": 0,
|
|
"IPAddress": "",
|
|
"IPPrefixLen": 0,
|
|
"IPv6Gateway": "",
|
|
"MacAddress": "",
|
|
"Networks": {
|
|
"1623449_default": {
|
|
"IPAMConfig": {},
|
|
"Links": null,
|
|
"Aliases": ["main", "4d325eab9c62"],
|
|
"NetworkID": "4e6a4ae2dc07f09503c0ffa15b85e7e05cc7b80c0b38ba2e56f14fda4685bf5b",
|
|
"EndpointID": "1b053b592096ad3eb36070ca6966326a2f529e730bb77e1f4130b4385c1889a9",
|
|
"Gateway": "172.17.0.1",
|
|
"IPAddress": "172.17.0.2",
|
|
"IPPrefixLen": 16,
|
|
"IPv6Gateway": "",
|
|
"GlobalIPv6Address": "",
|
|
"GlobalIPv6PrefixLen": 0,
|
|
"MacAddress": "02:42:ac:11:00:02",
|
|
"DriverOpts": null
|
|
},
|
|
"supervisor0": {
|
|
"IPAMConfig": {},
|
|
"Links": null,
|
|
"Aliases": ["4d325eab9c62"],
|
|
"NetworkID": "e76c14514bc9b5967046e614b5f75193fb80370dc2ec210da6898afb8223959f",
|
|
"EndpointID": "d36e5e2b46270bc2618baf350c6b7af29e67b1a832e600669fb13a3468491ec0",
|
|
"Gateway": "10.114.104.1",
|
|
"IPAddress": "10.114.104.2",
|
|
"IPPrefixLen": 25,
|
|
"IPv6Gateway": "",
|
|
"GlobalIPv6Address": "",
|
|
"GlobalIPv6PrefixLen": 0,
|
|
"MacAddress": "02:42:0a:72:68:02",
|
|
"DriverOpts": null
|
|
}
|
|
}
|
|
}
|
|
}
|