How to Install Docker on Fedora 35

Install docker

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

Run docker as non root user

sudo groupadd docker
sudo usermod -aG docker $USER

Start docker on startup

sudo systemctl enable docker.service
sudo systemctl enable containerd.service

Optionally, install docker-compose

sudo dnf install docker-compose

Links

%d Bloggern gefällt das: