Last active
July 8, 2019 03:05
-
-
Save mnadjit/aa69195a3b3e2fc9026737a8c8c7853d to your computer and use it in GitHub Desktop.
Ubuntu Scripts
This file contains 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/bash | |
sudo apt-get -y update | |
# Install required libraries | |
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common | |
# Add Key | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# Verify key has been added | |
sudo apt-key fingerprint 0EBFCD88 | |
# Set up 'Stable' repository | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get -y update | |
# Install Docker | |
sudo apt-get install -y docker-ce | |
# Install Docker-Machine | |
base=https://github.com/docker/machine/releases/download/v0.14.0 && | |
curl -L $base/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine && | |
sudo install /tmp/docker-machine /usr/local/bin/docker-machine | |
#Install Docker-Compose | |
sudo apt-get install -y docker-compose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment