Skip to content

Instantly share code, notes, and snippets.

@paulbrodner
Last active November 1, 2020 17:25
Show Gist options
  • Save paulbrodner/4fa44047dba4a15409b060f4adb2939e to your computer and use it in GitHub Desktop.
Save paulbrodner/4fa44047dba4a15409b060f4adb2939e to your computer and use it in GitHub Desktop.
# based on https://docs.docker.com/engine/install/ubuntu/
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
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 $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce
# call this as:
# curl -fsSL https://gist.github.com/paulbrodner/4fa44047dba4a15409b060f4adb2939e -o install-docker.sh && sudo sh install-docker.sh
# for running in WSL add
# echo "export DOCKER_HOST=localhost:2375" >> ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment