Install Docker on Linux Mint 18.1

Installing Docker in Linux Mint 18.1 made easy with this simple script. Thanks to Simon Hardy blog for providing the complete command line to install Docker on Ubuntu 16.04 Xenial Xerus. I modify the script a little bit so anyone can easily install Docker on Ubuntu 16.04 and also Linux Mint 18.1 with this script.

The commands to install Docker on Ubuntu based Linux

sudo apt-get install apt-transport-https ca-certificates -y
sudo apt-key adv --keyserver hkp:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo echo deb ubuntu-xenial main | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get purge lxc-docker
sudo apt-get install linux-image-extra-$(uname -r) -y
sudo apt-get install docker-engine cgroup-lite apparmor -y
sudo usermod -a -G docker $USER
sudo service docker start

If you prefer the simpler way to install Docker on Linux Mint 18, follow these steps.

Then I created a shell script to make the installation lot easier.

  1. Download the script.
  2. Make it executable
  3. Run the script.

Step 1. Download the script from this link. And save it to your working directory.

Step 2. Make it executable

chmod +x

Step 3. Run the script


That’s it.


One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *