Script to install docker on Linode

If you try to install Docker on Linode, you will found there’re some glitch stoping you can easily do that. I create a bash script based on the documents (1) I googled, hope this script makes you life easier. Enjoy!

Note: Only for Ubuntu 16.04 LTS and later.

sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates
sudo apt-key adv — keyserver hkp:// — recv-keys 58118E89F3A912897C070ADBF76221572C52609D
touch /etc/apt/sources.list.d/docker.list
echo ‘deb 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

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.