Skip to content

Instantly share code, notes, and snippets.

@Davidblkx
Last active May 14, 2020 15:58
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 Davidblkx/95ec111da4f39fc697dec72f67131fee to your computer and use it in GitHub Desktop.
Save Davidblkx/95ec111da4f39fc697dec72f67131fee to your computer and use it in GitHub Desktop.
#/bin/bash
# install docker in Fedora 32
# add repo
sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
# use 31 version (There are no official support for 32)
sudo sed -i 's/$releasever/31/g' /etc/yum.repos.d/docker-ce.repo
# install docker-ce
sudo dnf install docker-ce
# Enable and start docker service
sudo systemctl enable --now docker
# Add current user to DOCKER group
sudo usermod -aG docker $(whoami)
# Switch to cgroup v1
sudo dnf install grubby
sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"
# Update Firewalld to use IPTABLES
sudo sed -i 's/=nftables/=iptables/g' /etc/firewalld/firewalld.conf
# Reboot
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment