Remove docker versi old
sudo dnf remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine \ podman \ runc
run
sudo dnf -y install dnf-plugins-core
run
sudo dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
run
sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl enable --now docker
run
sudo systemctl start docker
run examples hello world
sudo docker run hello-world
Uninstall
sudo dnf remove docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
run
sudo rm -rf /var/lib/docker
Run
sudo rm -rf /var/lib/containerd