-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to run docker in a systemd container faces cgroup path error #79
Comments
@jshachm Is this on Fedora 27? |
No . It's on CentOS 7.3. The problem lies on the codes which mount |
systemd needs to be able to write to /sys/fs/cgroup/systemd in order to launch processes inside of the container. |
@rhatdan Long time after we discussed this problem... We need to |
When trying to run
docker
in a systemd container withoci-systemd-hook
, things go wrong withcgroup
path.# docker run -ti busybox docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:393: container init caused \"rootfs_linux.go:57: mounting \\\"cgroup\\\" to rootfs \\\"/var/lib/docker/devicemapper/mnt/e83e8ed9017e5dfe76d9bc6473d6d630902bde19a5cdecebb4cc26025381673d/rootfs\\\" at \\\"/sys/fs/cgroup\\\" caused \\\"stat /sys/fs/cgroup/44a49d3dbe07bc2e36acafd22e025c10d670d67718ecba0fc7df7aa611e6971a: no such file or directory\\\"\"".
But if we don't do the mount
cgroup
during the hook,docker
will run pretty good.So I want to ask @rhatdan , why should we mount
cgroup
into container when start a systemd container?The text was updated successfully, but these errors were encountered: