Commands to run to get moby-engine running on Fedora 32
1 2 3 4 5 6 7 | # as root or sudo'd dnf install grubby grubby --update-kernel=ALL --args= "systemd.unified_cgroup_hierachy=0" # check the output of the above grubby --info=ALL sudo mkdir /sys/fs/cgroup/systemd sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd |
https://github.com/docker/for-linux/issues/219
My version of docker moby-engine-19.03.11-1.ce.git42e35e6.fc32.x86_64
The error message you might see when trying to run a container
1 2 | docker: Error response from daemon: cgroups: cgroup mountpoint does not exist: unknown. ERRO[0000] error waiting for container: context canceled |

Do it across reboots
Create two files as follows
/etc/systemd/system/docker-boot.service
1 2 3 4 5 6 7 8 9 | [Unit] Description=Docker run on Fedora 32 Before=docker.service [Service] ExecStart=/usr/local/bin/docker-boot.sh [Install] WantedBy=multi-user.target |
/usr/local/bin/docker-boot.sh
1 2 3 4 5 6 | #!/bin/sh # run these on each boot to # get the docker environment running mkdir /sys/fs/cgroup/systemd mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd |
Make it executeable and register it to start on boot
1 2 3 4 | chmod +x /usr/local/bin/docker-boot .sh # make sure it has the correct seLinux context restorecon - v /usr/local/bin/docker-boot .sh systemctl enable docker-boot |
0 Comments