Last active
February 26, 2018 16:47
-
-
Save cellcoresystems/b06b5df8078d1cfed4089e4ef7358f75 to your computer and use it in GitHub Desktop.
install docker script
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 | |
# docker installation on Ubunutu 16.04+ | |
# source https://www.dockerfile.de/docker-tutorial-installation | |
# remove any old docker | |
sudo apt-get remove docker docker-engine docker.io | |
# install prerequisites | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
# add latest docker repo | |
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 \ | |
$(lsb_release -cs) \ | |
stable" | |
# install docker | |
sudo apt-get update | |
sudo apt-get install docker-ce -y | |
# run hello-world docker | |
sudo docker run hello-world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment