Skip to content

Instantly share code, notes, and snippets.

@slashtechno
Last active January 4, 2022 23:53
Show Gist options
  • Save slashtechno/ebbc6fb57025513e64e885a04d06df2e to your computer and use it in GitHub Desktop.
Save slashtechno/ebbc6fb57025513e64e885a04d06df2e to your computer and use it in GitHub Desktop.
Install Docker on Ubuntu
#!/bin/bash
# Just to bash install-docker when in the directory you downloaded this script to or copy and paste commands
sudo apt update
sudo apt 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 focal stable"
sudo apt update
sudo apt install docker-ce
sudo usermod -aG docker $USER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment