Skip to content

Instantly share code, notes, and snippets.

@jorandradefig
Last active March 6, 2018 21:26
Show Gist options
  • Select an option

  • Save jorandradefig/dd00d2bfd03c10da704088c41b2260f1 to your computer and use it in GitHub Desktop.

Select an option

Save jorandradefig/dd00d2bfd03c10da704088c41b2260f1 to your computer and use it in GitHub Desktop.
Install Docker CE for Ubuntu
From: https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository
SET UP THE REPOSITORY
Update the apt package index
sudo apt-get update
Install packages to allow apt to use a repository over HTTPS
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
Add Docker’s official GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Set up the stable repository
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
INSTALL DOCKER CE
Update the apt package index
sudo apt-get update
Install the latest version of Docker CE
sudo apt-get install docker-ce
Verify that Docker CE is installed correctly
sudo docker run hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment