Last active
May 14, 2020 15:58
-
-
Save Davidblkx/95ec111da4f39fc697dec72f67131fee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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