Created
February 19, 2017 04:18
-
-
Save stevesun21/495ab426ef1dfa43625f75f2af648c31 to your computer and use it in GitHub Desktop.
Script to install docker on Linode (Ubuntu 16.04 LTS and later)
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 | |
#Install Docker | |
sudo apt-get update | |
sudo apt-get -y install apt-transport-https ca-certificates | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
touch /etc/apt/sources.list.d/docker.list | |
echo 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' >> /etc/apt/sources.list.d/docker.list | |
sudo apt-get update | |
sudo apt-get -y purge lxc-docker | |
sudo apt-get -y install linux-image-extra-$(uname -r) linux-image-extra-virtual | |
sudo apt-get update | |
sudo apt-get -y install docker-engine | |
sudo service docker start | |
sudo docker run hello-world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment