Interview Prep/Docker/Daemon, install and permissions

`docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: ... cgroup`

AdvancedTroubleshootingDaemon, install and permissions
Answer

Likely causes → cgroup driver mismatch (cgroupfs vs systemd), cgroup v2 not delegated, or rootless without delegation.

Diagnose →

docker info | grep -i 'cgroup'
cat /sys/fs/cgroup/cgroup.controllers
journalctl -u containerd | tail

Fix → Align on systemd cgroup driver ("exec-opts": ["native.cgroupdriver=systemd"]), enable delegation for rootless (/etc/systemd/system/[email protected]/delegate.conf).

Prevent → Use consistent runtime configuration across Kubernetes/Docker nodes.

All Docker questions Roadmap: Docker & containers

More on Daemon, install and permissions