Skip to content

Instantly share code, notes, and snippets.

@angelospanag
Last active March 19, 2019 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelospanag/2b9df829eb395169e82393c1d1b3faf3 to your computer and use it in GitHub Desktop.
Save angelospanag/2b9df829eb395169e82393c1d1b3faf3 to your computer and use it in GitHub Desktop.
Install latest stable Docker daemon to an Ubuntu instance
#!/bin/bash
# Also seen here:
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
# https://docs.docker.com/install/linux/linux-postinstall/
sudo apt-get update
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get -y install docker-ce
# Using the user you want to execute docker commands without using sudo
sudo usermod -aG docker $USER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment