Skip to content

Instantly share code, notes, and snippets.

@ArtisKrumins
Last active January 28, 2024 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ArtisKrumins/4c827c5e0e66afe84eaa5d801f274924 to your computer and use it in GitHub Desktop.
Save ArtisKrumins/4c827c5e0e66afe84eaa5d801f274924 to your computer and use it in GitHub Desktop.
Fedora + Docker CE + Lando.md

Setting up Lando on Fedora 39

Update packages
sudo dnf -y update

Disable cgroups v2 in the kernel
sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"
Reboot.

Uninstall docker if you already did and install Docker CE.
sudo dnf -y install dnf-plugins-core

Add Docker repo
Change Fedora version if needed

sudo tee /etc/yum.repos.d/docker-ce.repo<<EOF
[docker-ce-stable]
name=Docker CE Stable - \$basearch
baseurl=https://download.docker.com/linux/fedora/39/\$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://download.docker.com/linux/fedora/gpg
EOF

Install Docker CE
sudo dnf makecache
sudo dnf install docker-ce docker-ce-cli containerd.io
sudo systemctl enable --now docker

Logout and Login again to use Docker without sudo
sudo usermod -aG docker $(whoami)
newgrp docker

Switch firewalld to use iptables (default is nftables)
In /etc/firewalld/firewalld.conf set FirewallBackend=iptables.
Restart firewall sudo systemctl restart firewalld

Add Lando CA
sudo cp ~/.lando/certs/lndo.site.pem /etc/pki/ca-trust/source/anchors/
sudo cp ~/.lando/certs/lndo.site.crt /etc/pki/ca-trust/source/anchors/
sudo update-ca-trust

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment