Can't start containers with Docker when resources are set
When resources are specified for Docker container, it can no longer start after latest upgrade to stable Alpine Linux with this:
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: unable to apply cgroup configuration: cannot enter cgroupv2 "/sys/fs/cgroup/docker" with domain controllers -- it is in domain threaded mode: unknown
Example resources (docker compose):
deploy:
resources:
limits:
cpus: "4.0"
memory: 4G
It worked fine before and I already enabled cgroups v2 as described in https://wiki.alpinelinux.org/wiki/OpenRC#cgroups_v2 and rebooted machine just in case.