Lab 1.1 Install Docker¶
The following commands need to be run on all three nodes unless otherwise specified.
From the jumpbox open mRemoteNG and start a session to each of the following servers. The sessions are pre-configured to connect with the default user “ubuntu”.
Once connected via CLI(SSH) to ALL three nodes as user ubuntu (it’s the user already setup in the MremoteNG settings), let’s elevate to root:
su - #When prompted for password enter "default" without the quotes
Your prompt should change to root@ at the start of the line :
Then, to ensure the OS is up to date, run the following command
apt update && apt upgrade -y
This can take a few seconds to several minute depending on demand to download the latest updates for the OS.
Add the docker repo
curl \-fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add \- add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
Install the docker packages
apt update && apt install docker-ce -y
Verify docker is up and running
docker run --rm hello-world
If everything is working properly you should see the following message
If you are not a linux/unix person - don’t worry. What happened above is how linux installs and updates software. This is ALL the ugly (under the cover steps to install apps, and in this case Docker on a Linux host. Please ask questions as to what really happened, but this is how with linux on ubuntu (and many other linux flavors) installs applications. Linux uses a term called “package manager”, and there are many: like PIP, YUM, APT, DPKG, RPM, PACMAN, etc. usually one is more favored by the flavor of linux (i.e. debian, ubuntu, redhat, gentoo, OpenSuse, etc.), but at the end of the day they all pretty much do the same thing, download and keep applications updated.