Lab 1.1 Install Docker ====================== .. important:: 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”. - kube-master1 - kube-node1 - kube-node2 .. image:: images/MremoteNG.png #. 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: .. code-block:: bash su - #When prompted for password enter "default" without the quotes Your prompt should change to root@ at the start of the line : .. image:: images/rootuser.png #. Then, to ensure the OS is up to date, run the following command .. code-block:: bash apt update && apt upgrade -y .. note:: This can take a few seconds to several minute depending on demand to download the latest updates for the OS. #. Add the docker repo .. code-block:: bash 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 .. code-block:: bash apt update && apt install docker-ce -y #. Verify docker is up and running .. code-block:: bash docker run --rm hello-world If everything is working properly you should see the following message .. image:: images/docker-hello-world-yes.png .. hint:: 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.