-
Notifications
You must be signed in to change notification settings - Fork 2k
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
dockerd: failed to start daemon: Devices cgroup isn't mounted #2104
Comments
I have the same issue. service docker stop
service containerd stop
cgroupfs-umount
cgroupfs-mount
service containerd start
service docker start Sysinfo: Linux vr 5.2.0-2-amd64 #1 SMP Debian 5.2.9-2 (2019-08-21) x86_64 GNU/Linux
cgroupfs-mount ver 1.4 containerd --version
docker version
|
Found the "bug"... I forgot to mention in my previous comment that I use(d) systemd version 243. From the systemd changelog:
Sooo... Houston, we have a problem:
"Same" issue in kubernetes |
Hi All,
--exec-opt native.cgroupdriver=systemd And per upstream workaround, which works temporarily with cgroup v1.
Thanks |
@kj54321 |
Update: installed the community edition and it works now with the added boot argument. I added the argument but it did not solve the issue on a Fedora 31 install (upgraded from Fedora 30). Here is my boot command line /proc/cmdline |
@jnk5y, It does work for me on F31. Fresh install though. In the Redhat thread it looks like it worked for other people as well. Did you get the same error? |
Obviously docker just has to support cgroupsv2. From the cited distribution bug (which is a downstream workaround, not an upstream workaround):
|
cgroups v2 support is well underway, support first has to be merged into containerd: containerd/containerd#3799 There's also some outstanding PR's on runc it seems. |
|
Very old fedora install here. I:
and everything was happy |
Running this on Fedora 31, after an in-place upgrade from Fedora 30, works:
See a specific comment on the Fedora 31 bug report and the Fedora 31 documentation on using grubby. |
I can't make it work in Fedora 31 Silverblue. I've tried everything to install and config moby-engine. Terminal copy-paste: |
ok... I've made it run... |
Following also worked ... dnf install -y grubby grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0" reboot |
This has been making my Fedora 30->31 upgrades ugly. Of course Podman works in anti-competitive efforts to push out Docker. A system-wide kernel boot option shouldn't be required for backwards compatibility with a container engine. Hmmm |
@cpuguy83 any update on this? I just ran into the issue on a new install of Fedora 31. Thankfully the workaround mentioned above worked for me. However I noticed that containerd PR was merged so I wanted to check on the progress from Docker's side. |
@jjspace This will not be supported until containerd 1.4 is released. I think we have all the bits we need in dockerd for this right now, but again this depends on containerd 1.4. There are also some outstanding pieces in runc. We are currently planning the next major release of Docker ("20.03" is the placeholder version). I do not think we will be shipping that with containerd 1.4 since that is not ready yet.... but in theory one containerd 1.4 is out once that's upgraded (along with runc) it should work. |
Seriously? The issue is that Docker has no support for cgroup v2, which is a feature all Linux distributions have had for at least five years. The fact it's now finally being adopted is pushing everyone to add support for it. |
None of these comments are helpful. |
Is there any update on this? Will it work for upcoming fedora 32 release out of the box? |
I gave an update 12 days ago. Will it work OOTB on Fedora 32? Not unless Fedora switches back to cgroups v1. Support for cgroups v2 in Docker is still being worked on across the stack. |
I've been struggling with this problem myself on fedora 31 for a long time. The solution suggested by @RASPWeather worked for me. |
I got another solution.
Detail at https://www.digitalocean.com/community/tutorials/how-to-limit-resources-using-cgroups-on-centos-6 |
Thanks. That did the trick for me. |
I'm getting an error following error. Here is a complete output.
Output of
and output from
I'm using Debian 10 (buster) on armh platform. Thanks in advance! |
@rajspatel1297, I used the workaround suggested by @Swiftyhu. I suspect this workaround will become obsolete at some point. Edit: sudo apt install cgroupfs-mount |
Don't know how helpful this will be to anyone else, but I solved the same problem by recompiling my kernel. Run contrib/check_config.sh (in the source code) to check if your kernel supports what Docker needs, recompile accordingly. |
@thaJeztah shall we close this issue? Should be owned by https://github.com/moby/moby anyway |
Came here after an update from Ubuntu 20.04 to 22.04 (still on Docker 19; cannot update easily). The workaround from Swiftyhu helped to start the deamon. Thanks!
|
Based on #2104 (comment), the following worked for me on Ubuntu 22.04 as well (trying to run Docker-in-Docker with an old Docker 18.09.9 version).
|
Description
The problematic part of
dockerd
's output:Output of
cgroupfs-mount
:Output of
docker version
:Output of
docker info
:Running physically on Debian 10 with kernel 5.3.0-rc5-amd64
The text was updated successfully, but these errors were encountered: