moby: Can not run any docker container (fresh install after reboot)
I have installed docker using script provided at https://get.docker.com/. I was able to test docker, but after a while I have to reboot system. After that I could not start any container (even after complete removal and reinstall). I’ve got the same error each time, and I was unable to find any solution:
docker run -it ubuntu:16.04 /bin/sh
Handler for POST /v1.24/containers
/38a049b5e8da8a720250856ce0e09a4c5a86cf8f1679da05aa79b787869df309/start
returned error: invalid header field value "oci runtime error: container_linux.go:247:
starting container process caused \"process_linux.go:359: container init caused
\\\"rootfs_linux.go:53: mounting \\\\\\\"cgroup\\\\\\\" to rootfs \\\\\\\"/var/lib/docker/devicemapper
/mnt/8c26d2f3ae0b4d69b4375705d3c5b03386e64c9cec69dd012e972f2055acf820/rootfs\\\\\\\"
at \\\\\\\"/sys/fs/cgroup\\\\\\\" caused \\\\\\\"no subsystem for mount\\\\\\\"\\\"\"\n"
Linux 4.6.0-1-amd64 #1 SMP Debian 4.6.4-1 (2016-07-18) x86_64 GNU/Linux Docker version 1.12.3, build 6b644ec
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 21
- Comments: 23 (5 by maintainers)
Commits related to this issue
- core: don't use the unified hierarchy for the systemd cgroup yet Too many things don't get along with the unified hierarchy yet: * https://github.com/opencontainers/runc/issues/1175 * https://gith... — committed to martinpitt/systemd by martinpitt 8 years ago
- core: don't use the unified hierarchy for the systemd cgroup yet (#4628) Too many things don't get along with the unified hierarchy yet: * https://github.com/opencontainers/runc/issues/1175 * h... — committed to systemd/systemd by martinpitt 8 years ago
- core: don't use the unified hierarchy for the systemd cgroup yet (#4628) Too many things don't get along with the unified hierarchy yet: * https://github.com/opencontainers/runc/issues/1175 * http... — committed to fbuihuu/systemd-opensuse-next by martinpitt 8 years ago
- core: don't use the unified hierarchy for the systemd cgroup yet (#4628) Too many things don't get along with the unified hierarchy yet: * https://github.com/opencontainers/runc/issues/1175 * http... — committed to systemd/systemd-stable by martinpitt 8 years ago
- core: don't use the unified hierarchy for the systemd cgroup yet (#4628) Too many things don't get along with the unified hierarchy yet: * https://github.com/opencontainers/runc/issues/1175 * http... — committed to NixOS/systemd by martinpitt 8 years ago
https://github.com/opencontainers/runc/issues/1175 mentions such solution:
Change
GRUB_CMDLINE_LINUX_DEFAULT
in/etc/default/grub
so that it looks like this:quiet is from default Debian grub install.
Then update grub and reboot:
Just want to report that I got this on machines running debian unstable.
I’m getting the same error here:
Look at my system details below:
docker info
Although, I’m able to run containers if I manually mount
/sys/fs/cgroup
:@Majkl578 : This got fixed by https://github.com/opencontainers/runc/pull/1266, there just hasn’t been a new runc release since then. I backported the fix to to Ubuntu already, but it is not yet fixed in Debian, see the bug report
I had the same issue using Arch with systemd 232-3.
upgrading the system got me systemd 232-8, and docker seem to be working again.
I’m getting this on centos 7.2, systemd 219, docker 1.12.2.
Would this be related to the -H fd:// changes in 1.12 or is that a red herring?