- Minor
@Valerio found this out first, but never received an answer. Today I found it out, too. But this is present since 2019 (or even longer).
I would say it's a bug, as:
- it prevents HDD/SSD spindown/sleep (depending on the location of docker.img)
- it wears out the SSD in the long run (if docker.img is located here) - see this bug, too.
- it prevents reaching CPU's deep sleep states
What happens:
- /var/lib/docker/containers/*/hostconfig.json is updated every 5 seconds with the same content
- /var/lib/docker/containers/*/config.v2.json is updated every 5 seconds with the same content except of some timestamps (which shouldn't be part of a config file I think)
Which docker containers:
- verified are Plex (Original) and PiHole, but maybe this is a general behaviour
As an example the source of hostconfig.json which was updated yesterday 17280x times with the same content:
find /var/lib/docker/containers/40b4197fdea122178139e9571ae5f4040a2ef69449acf14e616010c7e293bb44 -ls -name hostconfig.json -exec cat {} \;
2678289 4 -rw-r--r-- 1 root root 1725 Oct 8 13:46 /var/lib/docker/containers/40b4197fdea122178139e9571ae5f4040a2ef69449acf14e616010c7e293bb44/hostconfig.json
{
"Binds":[
"/mnt/user/tv:/tv:ro",
"/mnt/cache/appdata/Plex-Media-Server:/config:rw",
"/mnt/cache/appdata/Plex-Transcode:/transcode:rw",
"/mnt/user/movie:/movie:ro"
],
"ContainerIDFile":"",
"LogConfig":{
"Type":"json-file",
"Config":{
"max-file":"1",
"max-size":"50m"
}
},
"NetworkMode":"host",
"PortBindings":{
},
"RestartPolicy":{
"Name":"no",
"MaximumRetryCount":0
},
"AutoRemove":false,
"VolumeDriver":"",
"VolumesFrom":null,
"CapAdd":null,
"CapDrop":null,
"Capabilities":null,
"Dns":[
],
"DnsOptions":[
],
"DnsSearch":[
],
"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":"",
"CpuShares":0,
"Memory":0,
"NanoCpus":0,
"CgroupParent":"",
"BlkioWeight":0,
"BlkioWeightDevice":[
],
"BlkioDeviceReadBps":null,
"BlkioDeviceWriteBps":null,
"BlkioDeviceReadIOps":null,
"BlkioDeviceWriteIOps":null,
"CpuPeriod":0,
"CpuQuota":0,
"CpuRealtimePeriod":0,
"CpuRealtimeRuntime":0,
"CpusetCpus":"",
"CpusetMems":"",
"Devices":[
{
"PathOnHost":"/dev/dri",
"PathInContainer":"/dev/dri",
"CgroupPermissions":"rwm"
}
],
"DeviceCgroupRules":null,
"DeviceRequests":null,
"KernelMemory":0,
"KernelMemoryTCP":0,
"MemoryReservation":0,
"MemorySwap":0,
"MemorySwappiness":null,
"OomKillDisable":false,
"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"
]
}