Skip to content

Instantly share code, notes, and snippets.

@hoannc54
Last active October 27, 2018 02:05
Show Gist options
  • Save hoannc54/912605ab309d631cc76e6ae66f7013cc to your computer and use it in GitHub Desktop.
Save hoannc54/912605ab309d631cc76e6ae66f7013cc to your computer and use it in GitHub Desktop.
Docker install
# Docker installation script for Ubuntu 16.04 (Xenial) on Azure
# Usage: execute sudo -i, first.
# wget -q -O - "$@" https://gist.githubusercontent.com/tsaqib/9c7c6eed460930b1a14665043bd2157c/raw/ --no-cache | sh
# After running the script reboot and check whether docker is running.
apt-get update -y
apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt update -y
apt-cache policy docker-ce
apt install -y docker-ce
systemctl status docker
### sudo usermod -aG docker ${USER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment