Created
January 6, 2019 12:23
-
-
Save hqf00342/43fd89bb7ce987da818386ca69f86b34 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo yum remove -y docker docker-common docker-selinux docker-engine | |
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 makecache fast | |
yum list docker-ce --showduplicates | sort -r | |
sudo yum -y install docker-ce | |
sudo systemctl start docker | |
sudo systemctl enable docker | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment