Skip to content

Instantly share code, notes, and snippets.

@Davidblkx
Last active May 14, 2020 15:58

Revisions

  1. Davidblkx revised this gist May 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fedora32-docker.sh
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@ sudo dnf install grubby
    sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"

    # Update Firewalld to use IPTABLES
    sudo sed -i 's/=iptables/=nftables/g' /etc/firewalld/firewalld.conf
    sudo sed -i 's/=nftables/=iptables/g' /etc/firewalld/firewalld.conf

    # Reboot
    sudo reboot
  2. Davidblkx created this gist May 14, 2020.
    28 changes: 28 additions & 0 deletions fedora32-docker.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    #/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/=iptables/=nftables/g' /etc/firewalld/firewalld.conf

    # Reboot
    sudo reboot