Skip to content

Instantly share code, notes, and snippets.

@Sarfarazsajjad
Created September 8, 2019 08:07
Show Gist options
  • Save Sarfarazsajjad/38cd5bbc9f93913a54f35d234a0d0339 to your computer and use it in GitHub Desktop.
Save Sarfarazsajjad/38cd5bbc9f93913a54f35d234a0d0339 to your computer and use it in GitHub Desktop.
Install Docker CE on Linux Ubuntu Bionic
#!/usr/bin/env bash
sudo apt update
sudo apt --yes install \
software-properties-common \
apt-transport-https \
ca-certificates \
curl
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 update
sudo apt --yes install docker-ce
sudo usermod --append --groups docker $USER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment