Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
WSL2: docker: Error response from daemon: cgroups: cannot find cgroup mount destination: unknown. #4189
Please fill out the below information:
Intermittently, Docker CE quits working with a cgroup error. If I run
This should work consistently.
Windows build number: 1903 (OS Build 18932.1000)
Here's some steps to reproduce the bug on my WSL2 / Ubuntu:
Create an image with this Dockerfile:
At this point running any new container in Docker will result in this error:
And you will have to restart wsl just like @PatrickLang explained.
Hope this helps a bit.
I encountered this too - the "fix" was running this in WSL:
sudo mkdir /sys/fs/cgroup/systemd sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
Not really a viable fix, but it made my command work.
Client: Docker Engine - Community Version: 19.03.1 API version: 1.40 Go version: go1.12.5 Git commit: 74b1e89 Built: Thu Jul 25 21:21:05 2019 OS/Arch: linux/amd64 Experimental: false Server: Docker Engine - Community Engine: Version: 19.03.1 API version: 1.40 (minimum version 1.12) Go version: go1.12.5 Git commit: 74b1e89 Built: Thu Jul 25 21:19:41 2019 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.2.6 GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb runc: Version: 1.0.0-rc8 GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f docker-init: Version: 0.18.0 GitCommit: fec3683
The command I was running that caused it to error (interestingly, on my system it seemed to be a system load based error, only under high demand did I see this.
kind create cluster --config cluster.yaml
kind: Cluster apiVersion: kind.sigs.k8s.io/v1alpha3 nodes: - role: control-plane - role: control-plane - role: control-plane - role: worker - role: worker - role: worke