docker-archive / toolbox

The Docker Toolbox
https://docker.com/toolbox
3.22k stars 1.23k forks source link

docker-toolbox windows 10 home failed start any image with error message "cgroups: cannot find cgroup mount destination: unknown" #816

Open Slach opened 5 years ago

Slach commented 5 years ago

Steps to reproduce

docker-machine create
docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

docker run --rm -it ubuntu:18.04 bash
Unable to find image 'ubuntu:18.04' locally
18.04: Pulling from library/ubuntu
Status: Downloaded newer image for ubuntu:18.04
C:\Portable\Docker Toolbox\docker.exe: Error response from daemon: cgroups: cannot find cgroup mount destination: unknown.

Workaround found here: https://github.com/docker/for-linux/issues/219

docker-machine ssh -- "sudo mkdir /sys/fs/cgroup/systemd"
docker-machine ssh -- "sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd"