DEV Community

Andy Yang
Andy Yang

Posted on

Fedora 33 - Docker

Docker and Fedora 33

With the release of Fedora 33, Docker is not supported by Fedora 33 officially.
This article will help you install Docker on Fedora 33.

Remove old version

sudo dnf remove docker-*
sudo dnf config-manager --disable docker-*
Enter fullscreen mode Exit fullscreen mode

Enable old CGroups

Docker still not support CgroupsV2.

sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"
Enter fullscreen mode Exit fullscreen mode

Set up firewall

sudo firewall-cmd --permanent --zone=trusted --add-interface=docker0
sudo firewall-cmd --permanent --zone=FedoraWorkstation --add-masquerade
Enter fullscreen mode Exit fullscreen mode

Install Moby

Moby is the open-source version of Docker.

sudo dnf install moby-engine docker-compose
sudo systemctl enable docker
Enter fullscreen mode Exit fullscreen mode

restart sudo reboot

Test

sudo docker run hello-world
Enter fullscreen mode Exit fullscreen mode

Runing without sudo

sudo groupadd docker
sudo usermod -aG docker $USER
//reboot to take effect
Enter fullscreen mode Exit fullscreen mode

Top comments (2)

Collapse
 
idriss_neumann profile image
Idriss Neumann ∞ 🐧 🐳 🦊 • Edited

Thanks. It works like a charm.

docker-fedora

Collapse
 
harshrathod50 profile image
Harsh Rathod

Thanks! This hack worked. 👍