Skip to content

Instantly share code, notes, and snippets.

@capsulecorplab
Last active November 24, 2020 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save capsulecorplab/75bf4fcb6463f750ca8e669350110c4f to your computer and use it in GitHub Desktop.
Save capsulecorplab/75bf4fcb6463f750ca8e669350110c4f to your computer and use it in GitHub Desktop.
bash script for installing docker
#!/usr/bin/env bash
# install docker
# see https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt update -y
apt-cache policy docker-ce
sudo apt install docker-ce -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment