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$(. /etc/os-release;echo $ID)/docker-ce.repo
  • sudo dnf install docker-ce docker-ce-cli git nano
  • sudo curl -L "$(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 *