docker 启动容器遇到问题: cgroups: cannot find cgroup mount destination: unknown.

docker启动容器,遇到如下错误:

$ docker run -p 8081:8080 tomcat /bin/bash
E:\Docker Toolbox\docker.exe: Error response from daemon: cgroups: cannot find c
group mount destination: unknown.

docker 启动容器遇到问题: cgroups: cannot find cgroup mount destination: unknown._第1张图片
解决办法:
1、执行docker-machine ssh 进入Linux虚拟机。
2、执行 sudo mkdir /sys/fs/cgroup/systemd
3、执行 sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
4、再次启动容器,如下图:
docker 启动容器遇到问题: cgroups: cannot find cgroup mount destination: unknown._第2张图片
解决方案来源:https://github.com/moby/moby/issues/36016

你可能感兴趣的:(环境搭建项目部署)