Skip to content

Instantly share code, notes, and snippets.

@deepio
Last active October 16, 2019 18:31
Show Gist options
  • Save deepio/297c3e79f3c02f6e49166297eac8020c to your computer and use it in GitHub Desktop.
Save deepio/297c3e79f3c02f6e49166297eac8020c to your computer and use it in GitHub Desktop.
#!/bin/bash
set -o xtrace
set -o errexit
# Install Docker
sudo apt-get update
sudo apt-get install -yq \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install -yq \
docker-ce \
docker-ce-cli \
containerd.io
sudo service docker start
sudo usermod -aG docker $USER
# Install Docker-Compose
sudo curl -fsSL "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
@deepio
Copy link
Author

deepio commented Jul 8, 2019

Install docker with a single command, walk away and grab some tea.

curl -fsSL https://gist.githubusercontent.com/deepio/297c3e79f3c02f6e49166297eac8020c/raw/81aaca1edbf4795fb3648194b8040f2083664cda/Install%2520Docker-CE%2520Ubuntu | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment