Skip to content

Instantly share code, notes, and snippets.

@carlosm3011
Last active May 26, 2019 00:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlosm3011/b8541438e3ba37be2e640bea09ee4a31 to your computer and use it in GitHub Desktop.
Save carlosm3011/b8541438e3ba37be2e640bea09ee4a31 to your computer and use it in GitHub Desktop.
Installing DOCKER-CE on Ubuntu 16.04 (and possibly newer)
# instalacion para debian stretch
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install docker-ce
#!/bin/bash
# Source: https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/
echo "INSTALLING DOCKER-CE (carlosm3011@gmail.com, 20171230)"
echo "Recipe for Ubuntu 16.04, 18.04 and [possibly] newer"
echo -Do not use on other distros-
echo " "
echo Installing pre-requisites...
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
echo Installing required gpg keys...
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
echo Adding docker-ce repository...
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
echo Installing docker-ce
sudo apt-get update
sudo apt-get -y install docker-ce
echo Verifying operation
sudo docker run hello-world
@carlosm3011
Copy link
Author

carlosm3011 commented Nov 4, 2018

Installing docker-ce on Ubuntu 16.04 and 18.04

Run from a root prompt:

curl https://gist.githubusercontent.com/carlosm3011/b8541438e3ba37be2e640bea09ee4a31/raw/b3cc62628c2cab75d19f11c4e9492306d93e72e2/install-docker-ce.sh | sh -x

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