# remove old dedps
sudo dnf remove docker
docker-client
docker-client-latest
docker-common
docker-latest
docker-latest-logrotate
docker-logrotate
docker-selinux
docker-engine-selinux
docker-engine
# install
sudo dnf -y install 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 docker-compose-plugin
# service
sudo systemctl enable docker.service
sudo systemctl enable containerd.service
# permissions (most important)!
sudo groupadd docker
sudo usermod -aG docker $USER
# restart, to not waste an hour figuring out permission issues