Skip to content

Instantly share code, notes, and snippets.

@icarrr
Created October 17, 2019 07:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icarrr/cb6bf4b0125b21c2125834ccba748824 to your computer and use it in GitHub Desktop.
Save icarrr/cb6bf4b0125b21c2125834ccba748824 to your computer and use it in GitHub Desktop.
Install Docker CE and Docker Compose on CentOS 7 or RHEL 7
sudo yum install -y epel-release
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y docker-ce
sudo usermod -aG docker $(whoami)
sudo systemctl enable docker.service
sudo systemctl start docker.service
sudo docker version
sudo yum install -y epel-release
sudo yum install -y python-pip
sudo pip install docker-compose
docker-compose version
@icarrr
Copy link
Author

icarrr commented Oct 17, 2019

Install docker-ce on CentOS 7 or RHEL 7 :

~ ❯❯❯ curl -s https://gist.githubusercontent.com/icarrr/cb6bf4b0125b21c2125834ccba748824/raw/9e72049d520ae72f5bff0b5603d2b4c631bf14e0/docker-ce.sh | bash

Install docker compose on CentOS 7 or RHEL 7 :

~ ❯❯❯ curl -s https://gist.githubusercontent.com/icarrr/cb6bf4b0125b21c2125834ccba748824/raw/9e72049d520ae72f5bff0b5603d2b4c631bf14e0/docker-compose.sh | bash

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