Skip to content

Instantly share code, notes, and snippets.

@robert-skarzycki
Last active February 28, 2019 20:02
Show Gist options
  • Save robert-skarzycki/35373152f094609e74f5d0db4b84c0e1 to your computer and use it in GitHub Desktop.
Save robert-skarzycki/35373152f094609e74f5d0db4b84c0e1 to your computer and use it in GitHub Desktop.

How install docker on bare Ubuntu

1.Run following commands

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
sudo apt install docker-ce
  1. Check if it works:
 sudo docker run hello-world

-- OR --

Run jus this:

curl https://gist.githubusercontent.com/robert-skarzycki/cf919ec788e92fac565d0d7b2ed79f46/raw/51f48895c6b870d4f0b03dfe2d7596c751133b09/install-docker-ubuntu.sh | sudo bash

Source: https://unix.stackexchange.com/a/363058

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment