Skip to content

Instantly share code, notes, and snippets.

@johndpope
Forked from mnadjit/install_docker.sh
Last active July 9, 2019 03:52
Show Gist options
  • Save johndpope/dff7330bfbb02ea1e63d258dacdccd60 to your computer and use it in GitHub Desktop.
Save johndpope/dff7330bfbb02ea1e63d258dacdccd60 to your computer and use it in GitHub Desktop.
Ubuntu Scripts + docker for host
#!/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