Skip to content

Instantly share code, notes, and snippets.

@cellcoresystems
Last active February 26, 2018 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cellcoresystems/b06b5df8078d1cfed4089e4ef7358f75 to your computer and use it in GitHub Desktop.
Save cellcoresystems/b06b5df8078d1cfed4089e4ef7358f75 to your computer and use it in GitHub Desktop.
install docker script
#!/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