How to install Docker CE on Fedora 31

Install Docker CE

https://docs.docker.com/install/linux/docker-ce/fedora/

sudo dnf -y install dnf-plugins-core
sudo dnf config-manager \\n --add-repo \\n https://download.docker.com/linux/fedora/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli containerd.io
sudo systemctl start docker
sudo systemctl status docker

https://docs.docker.com/install/linux/linux-postinstall/

sudo groupadd docker
sudo usermod -aG docker $USER newgrp docker
sudo systemctl enable docker

https://github.com/docker/cli/issues/297#issuecomment-547022631

Fix this error:

docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:297: applying cgroup configuration for process caused \"open /sys/fs/cgroup/docker/cpuset.cpus.effective: no such file or directory\"": unknown.

https://github.com/docker/cli/issues/297#issuecomment-547022631

sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0" sudo reboot

Then re-test

docker run hello-world

%d Bloggern gefällt das: