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 skip the manual install process and use the automated script version please go here:
Future link coming soon
Step by step process:

I use the search bar

Get Docker

Docker for Linux

Pick your flavor of linux – I will be using Ubuntu

Now begins a copy and paste job

$ 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
This will uninstall any old versions of docker that may have already been downloaded as part of your base OS install


$sudo apt-get update
Time for a quick update

$ sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common

Add Docker’s official GPG key:
$ 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”


$ sudo apt-get update
$ sudo apt-get install docker-ce docker-ce-cli containerd.io

$ sudo docker run hello-world
Summary:
As you can see there are a few steps in deploying Docker manually. I always like to go through things manually once prior to using a script. As always, I hope y’all found this useful.