-
-
Save johndpope/dff7330bfbb02ea1e63d258dacdccd60 to your computer and use it in GitHub Desktop.
Ubuntu Scripts + docker for host
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/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