#!/bin/bash # Install the dnf-plugins-core package (which provides the commands to manage your DNF repositories) sudo dnf -y install dnf-plugins-core -y # Setup stable repository sudo dnf config-manager \ --add-repo \ https://download.docker.com/linux/fedora/docker-ce.repo -y # Install the latest version of Docker Engine and containerd sudo dnf install docker-ce docker-ce-cli containerd.io -y sudo systemctl start docker sudo systemctl enable docker sudo usermod -aG docker $USER