Skip to content

Instantly share code, notes, and snippets.

@rexagod
Created January 12, 2021 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rexagod/f16bc3cde0cdde21b1f20473f701bc07 to your computer and use it in GitHub Desktop.
Save rexagod/f16bc3cde0cdde21b1f20473f701bc07 to your computer and use it in GitHub Desktop.
if [[ $EUID -ne 0 ]]; then
exit 1
fi
set -e
# Remove older conflicting packages
dnf remove -y docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine
dnf install -y dnf-plugins-core
# Fetch from the official docker-ce repo
dnf config-manager \
--add-repo \
https://download.docker.com/linux/fedora/docker-ce.repo
# Install docker and utilities
dnf install -y docker-ce docker-ce-cli containerd.io
dnf list docker-ce --showduplicates | sort -r
systemctl start docker
systemctl enable docker.service
systemctl status docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment