系统升级之后,就一直启动不了container,求解决方法
Tofloor
poster avatar
xiaoyangerbani
deepin
2017-07-14 23:51
Author
ERROR: for mysql  Cannot start service mysql: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:359: container init caused \"rootfs_linux.go:54: mounting \\\"cgroup\\\" to rootfs \\\"/var/lib/docker/overlay2/3b43c04b17615674f2234d240ef0f4a38aeac5ee3ada71f51140ba2ee610ff31/merged\\\" at \\\"/sys/fs/cgroup\\\" caused \\\"no subsystem for mount\\\"\""
ERROR: Encountered errors while bringing up the project.
@jingle


Reply Favorite View the author
All Replies
avatar
186******42
deepin
2017-07-15 23:00
#1
在容器启动参数,追加
-v /sys/fs/cgroup:/sys/fs/cgroup:ro
即可,多挂在一个这样的目录
Reply View the author
avatar
xiaoyangerbani
deepin
2017-07-16 00:17
#2
https://bbs.deepin.org/post/142537
在容器启动参数,追加
-v /sys/fs/cgroup:/sys/fs/cgroup:ro
即可,多挂在一个这样的目录 ...

谢谢,这个问题,最后的解决方法,是添加的环境变量
Reply View the author
avatar
Red54
deepin
2017-07-18 01:47
#3
是新版systemd的问题,在GRUB_CMDLINE_LINUX_DEFAULT里增加systemd.legacy_systemd_cgroup_controller=1就可以了。
Reply View the author
avatar
xiaoyangerbani
deepin
2017-07-18 03:59
#4
https://bbs.deepin.org/post/142537
是新版systemd的问题,在GRUB_CMDLINE_LINUX_DEFAULT里增加systemd.legacy_systemd_cgroup_controller=1就 ...

嗯,好,谢谢,试试
Reply View the author
avatar
electricface
deepin
2017-07-18 05:24
#5
安装最新版的docker-ce
Reply View the author