Install Docker on Linux using convenience script

Posted by

As I always say, the difference between a good engineer and a SME is repetitions.  Already in this back to basics series, we’ve covered Git, GitHub, and YAML files.  Now comes time to get familiar with Docker containers.  The best way to do this is to build your own lab.  There are a few ways you can do this: 1. buy servers and put them in your lab but can be pricey 2. buy a decent spec laptop and either install linux/windows. 3. use something like VMware workstation to embed a lab.  In any case, my preference is to still use linux and this article will walk you through setting up Docker engine after you have a linux environment stood up.

For my windows people out there:

For those of you who wish to perform the manual install process please go here:

Future link coming soon

Step by step process:

Go to the docs.docker.com page

In the search bar use: Get Docker

Docker for Linux

Choose your flavor of Linux – my example will be using Ubuntu

$ lsb_release -a

$ cat /etc/*release*

Two ways to confirm your version of linux so you download the correct file

$ sudo apt-get remove docker docker-engine docker.io containerd runc

Time to follow the instructions

$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh

Summary:
If you view my other article on the manual process you will quickly learn just how much faster this scripted install is.  Either way, you should now have Docker Engine working on a Linux host.  As always, I hope y’all found this helpful.

Leave a Reply