Skip to content

Instantly share code, notes, and snippets.

@icarrr

icarrr/docker-ce.sh

Created Oct 17, 2019
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@icarrr 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