Hi Guys,
I’m a big Docker newby and have an issue i cannot get fixed myself.
To use Docker i’m also running Portainer.
The issue: After removing a Docker container (including the volume) it re-creates itself. And i have no idea why.
This is the “Inspect” element after removing a container:
{
"AppArmorProfile": "docker-default",
"Args": [],
"Config": {
"AttachStderr": false,
"AttachStdin": false,
"AttachStdout": false,
"Cmd": null,
"Domainname": "local.hass.io",
"Entrypoint": [
"/init"
],
"Env": [
"TZ=Europe/Amsterdam",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"LANG=C.UTF-8",
"S6_BEHAVIOUR_IF_STAGE2_FAILS=2",
"S6_CMD_WAIT_FOR_SERVICES=1"
],
"Hostname": "hassio-multicast",
"Image": "homeassistant/amd64-hassio-multicast:2",
"Labels": {
"io.hass.arch": "amd64",
"io.hass.base.image": "homeassistant/{arch}-base",
"io.hass.base.name": "alpine",
"io.hass.base.version": "15.2.0",
"io.hass.type": "multicast",
"io.hass.version": "2"
},
"OnBuild": null,
"OpenStdin": false,
"StdinOnce": false,
"Tty": false,
"User": "",
"Volumes": null,
"WorkingDir": ""
},
"Created": "2020-06-30T08:59:17.47456321Z",
"Driver": "overlay2",
"ExecIDs": null,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/9471df16df66c07715f769aecadf16d2abb3dc2165870418ee1a452c3e308604-init/diff:/var/lib/docker/overlay2/6a3989063412da47f170a54106d2b91b5ba9168ab1cf8925b5aff30ef9f3361e/diff:/var/lib/docker/overlay2/801f26def424905a3eed580e07d52608a663444fc37180c2d53a9e2d227cccc4/diff:/var/lib/docker/overlay2/54b4582c3a69284d02827be2b40ad41b2e697ba945ada2f0c08b75d13edf2183/diff:/var/lib/docker/overlay2/eb589c6390eb138b1916b97e6071c5845ef06cc10580a33b9616b911286d4907/diff",
"MergedDir": "/var/lib/docker/overlay2/9471df16df66c07715f769aecadf16d2abb3dc2165870418ee1a452c3e308604/merged",
"UpperDir": "/var/lib/docker/overlay2/9471df16df66c07715f769aecadf16d2abb3dc2165870418ee1a452c3e308604/diff",
"WorkDir": "/var/lib/docker/overlay2/9471df16df66c07715f769aecadf16d2abb3dc2165870418ee1a452c3e308604/work"
},
"Name": "overlay2"
},
"HostConfig": {
"AutoRemove": false,
"Binds": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceWriteIOps": null,
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"CapAdd": null,
"CapDrop": null,
"Capabilities": null,
"Cgroup": "",
"CgroupParent": "",
"ConsoleSize": [
0,
0
],
"ContainerIDFile": "",
"CpuCount": 0,
"CpuPercent": 0,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpuShares": 0,
"CpusetCpus": "",
"CpusetMems": "",
"DeviceCgroupRules": null,
"DeviceRequests": null,
"Devices": null,
"Dns": [
"172.30.32.3"
],
"DnsOptions": null,
"DnsSearch": [
"local.hass.io"
],
"ExtraHosts": [
"supervisor:172.30.32.2"
],
"GroupAdd": null,
"IOMaximumBandwidth": 0,
"IOMaximumIOps": 0,
"Init": false,
"IpcMode": "private",
"Isolation": "",
"KernelMemory": 0,
"KernelMemoryTCP": 0,
"Links": null,
"LogConfig": {
"Config": {},
"Type": "json-file"
},
"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"
],
"Memory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"NanoCpus": 0,
"NetworkMode": "host",
"OomKillDisable": false,
"OomScoreAdj": 0,
"PidMode": "",
"PidsLimit": null,
"PortBindings": null,
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
],
"ReadonlyRootfs": false,
"RestartPolicy": {
"MaximumRetryCount": 0,
"Name": ""
},
"Runtime": "runc",
"SecurityOpt": null,
"ShmSize": 67108864,
"UTSMode": "",
"Ulimits": null,
"UsernsMode": "",
"VolumeDriver": "",
"VolumesFrom": null
},
"HostnamePath": "/var/lib/docker/containers/a9da1dcd0164aeb131a6737f89549908b5d17116c590cf8d4d14513952d91b8e/hostname",
"HostsPath": "/var/lib/docker/containers/a9da1dcd0164aeb131a6737f89549908b5d17116c590cf8d4d14513952d91b8e/hosts",
"Id": "a9da1dcd0164aeb131a6737f89549908b5d17116c590cf8d4d14513952d91b8e",
"Image": "sha256:d1ddd7cbe3e702fba2fcd2e3302c47c80b3e96df3dc0a4b8984a4f95a207f928",
"LogPath": "/var/lib/docker/containers/a9da1dcd0164aeb131a6737f89549908b5d17116c590cf8d4d14513952d91b8e/a9da1dcd0164aeb131a6737f89549908b5d17116c590cf8d4d14513952d91b8e-json.log",
"MountLabel": "",
"Mounts": [],
"Name": "/hassio_multicast",
"NetworkSettings": {
"Bridge": "",
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"HairpinMode": false,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"MacAddress": "",
"Networks": {
"host": {
"Aliases": null,
"DriverOpts": null,
"EndpointID": "d78b768369d29e3eded4425b1cbb27dc48de83f88a672973bac0b144705024fd",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAMConfig": null,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"Links": null,
"MacAddress": "",
"NetworkID": "c8071e32422478ed1ed97cf7733770f9d6e64c8069f84aba2d65d047bfb18ec1"
}
},
"Ports": {},
"SandboxID": "e9d74207de728374bd03b4df34767b76f20b7bcfd07d137a8ca59d852ab697fd",
"SandboxKey": "/var/run/docker/netns/default",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null
},
"Path": "/init",
"Platform": "linux",
"ProcessLabel": "",
"ResolvConfPath": "/var/lib/docker/containers/a9da1dcd0164aeb131a6737f89549908b5d17116c590cf8d4d14513952d91b8e/resolv.conf",
"RestartCount": 0,
"State": {
"Dead": false,
"Error": "",
"ExitCode": 0,
"FinishedAt": "0001-01-01T00:00:00Z",
"OOMKilled": false,
"Paused": false,
"Pid": 30901,
"Restarting": false,
"Running": true,
"StartedAt": "2020-06-30T08:59:17.773756012Z",
"Status": "running"
}
Does some one have any clue why i cannot remove it?