Skip to content

Instantly share code, notes, and snippets.

@nlm
Last active December 31, 2019 12:44
Show Gist options
  • Save nlm/dfd81e1793da4bf7f3b5f9022468d204 to your computer and use it in GitHub Desktop.
Save nlm/dfd81e1793da4bf7f3b5f9022468d204 to your computer and use it in GitHub Desktop.
#! /bin/bash -eu
# curl -sL https://gist.github.com/nlm/dfd81e1793da4bf7f3b5f9022468d204/raw/30039fe9d1266b99ab6fd60ec0c63c275bba0d19/install_docker_on_ubuntu.sh | bash -eu
apt-get update
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment