Skip to content

Instantly share code, notes, and snippets.

@shirk3y
Created June 26, 2020 05:01
Show Gist options
  • Save shirk3y/3f18b5a4bf7a86b2824e2cf2a1c2f646 to your computer and use it in GitHub Desktop.
Save shirk3y/3f18b5a4bf7a86b2824e2cf2a1c2f646 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
set -x
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
apt-cache policy docker-ce
sudo apt install docker-ce
sudo usermod -aG docker ${USER}
sudo systemctl status docker
echo "Docker CE installed. "
echo "Logout and back in to use 'docker' command without sudo."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment