How to install Docker + Compose (and also grab Git and Nano while you're in there):
This is mostly a tl;dr of the instructions:
-
sudo dnf remove docker\*
sudo dnf config-manager --add-repo https://download.docker.com/linux/$(. /etc/os-release;echo $ID)/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli git nano
sudo curl -fL "https://github.com/docker/compose/releases/download/v2.3.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && sudo chmod +x /usr/local/bin/docker-compose
sudo systemctl enable --now docker
sudo usermod $(whoami) -a -G docker
One thought on “Installing Docker+Compose on CentOS 8”