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 -fL "$(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

Leave a Reply

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

Warning: This site uses Akismet to filter spam. Until or unless I can find a suitable replacement anti-spam solution, this means that (per their indemnification document) all commenters' IP addresses will be sent to Automattic, Inc., who may choose to share such with 3rd parties.
If this is unacceptable to you, I highly recommend using an anonymous proxy or public Wi-Fi connection when commenting.