Created
August 20, 2018 14:01
-
-
Save felixfong227/24ebfaffb519d0cdd6fa0a5c99e6265e to your computer and use it in GitHub Desktop.
Install The Latest Version Of Docker And Docker Compose 1.22.0
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
echo "== Installing Docker And Docker Compose ==" | |
echo "" | |
echo "Step 1: Update yum" | |
sudo yum update | |
echo "DONE: Update yum" | |
echo "Step 2: Install Docker via yum" | |
sudo yum install -y docker | |
echo "DONE: Install Docker via yum" | |
echo "Step 3: Appending SUDO to docker" | |
sudo usermod -a -G docker ec2-user | |
echo "DONE: Appending SUDO to docker" | |
echo "Step 4: Installing docker-compose via CURL" | |
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` | sudo tee /usr/bin/docker-compose > /dev/null | |
echo "DONE: Installing docker-compose via CURL" | |
echo "Step 5: Gives executable to the binary" | |
sudo chmod +x /usr/bin/docker-compose | |
echo "DONE: Gives executable to the binary" | |
echo "Step 6: Kick star the Docker service" | |
sudo service docker start | |
sudo chkconfig docker on | |
echo "DONE: Kick star the Docker service" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment