Skip to content

Instantly share code, notes, and snippets.

@roberthamel
Last active March 13, 2019 20:07
Show Gist options
  • Save roberthamel/ed090687a34f32546ce3b3612394b21d to your computer and use it in GitHub Desktop.
Save roberthamel/ed090687a34f32546ce3b3612394b21d to your computer and use it in GitHub Desktop.
#!/bin/sh
set -eu
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository -y \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install -y 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