Skip to content

Instantly share code, notes, and snippets.

@Qquanwei
Last active December 2, 2019 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Qquanwei/7bb08386651d7aae4e4d9567d24ce8e3 to your computer and use it in GitHub Desktop.
Save Qquanwei/7bb08386651d7aae4e4d9567d24ce8e3 to your computer and use it in GitHub Desktop.
set -xeo pipefail
apt-get update -y
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository \
"deb https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) \
stable"
apt-get update -y
RUNLEVEL=1 apt-get install -y docker-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment