Docker: Installation on Fedora

Install the  package (which provides the commands to manage your DNF repositories) and set up the stable repository. sudo dnf -y install dnf-plugins-core

Install repository sudo dnf config-manager \ --add-repo \ https://download.docker.com/linux/fedora/docker-ce.repo

Install the latest version of Docker Engine and containerd, or go to the next step to install a specific version sudo dnf install docker-ce docker-ce-cli containerd.io

Check docker version

Jika muncul pesan "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?" coba jalankan docker terlebih dahulu sudo systemctl start docker

Jika ingin menjalankan berbasis terminal sudo dockerd

Jika muncul peringatan "permission denied" jalankan perintah berikut gpasswd -a $USER docker // jika tidak berhasil sudo chmod 666 /var/run/docker.sock