Last active
May 26, 2019 00:55
-
-
Save carlosm3011/b8541438e3ba37be2e640bea09ee4a31 to your computer and use it in GitHub Desktop.
Installing DOCKER-CE on Ubuntu 16.04 (and possibly newer)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Installing docker-ce on Ubuntu 16.04 and 18.04
Run from a root prompt: