Skip to content

Instantly share code, notes, and snippets.

@kevinfelisilda
Last active June 6, 2019 04:27
Show Gist options
  • Save kevinfelisilda/8388078756a6fa630aba055181022528 to your computer and use it in GitHub Desktop.
Save kevinfelisilda/8388078756a6fa630aba055181022528 to your computer and use it in GitHub Desktop.
Install docker in linux
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 bionic stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce
To check the status:
sudo systemctl status docker
Optional: add $USER to docker group (make sure to log out and back in after)
sudo groupadd docker
sudo usermod -aG docker $USER
sudo systemctl restart docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment