Skip to content

Instantly share code, notes, and snippets.

@toddboyd
Created November 30, 2018 22:44
Show Gist options
  • Save toddboyd/df2340021e7f6dce1ead2b8c9a8517d5 to your computer and use it in GitHub Desktop.
Save toddboyd/df2340021e7f6dce1ead2b8c9a8517d5 to your computer and use it in GitHub Desktop.
Shell script to install latest docker-ce
apt-get update
apt-get -y install apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg > /tmp/dkey
apt-key add /tmp/dkey
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) stable"
apt-get update
apt-get -y install docker-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment