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 -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && sudo chmod +x /usr/local/bin/docker-compose
  • sudo systemctl start docker && systemctl enable docker
  • sudo usermod $(whoami) -a -G docker

One thought on “Installing Docker+Compose on CentOS 8

Leave a Reply

Your email address will not be published. Required fields are marked *