Yes, I know
How to Install Docker on Debian/Ubuntu/CentOS?

In this video, I show you how to install the latest version of Docker on Debian/Ubuntu/CentOS, straight from the project repository — and that, in a secure manner by checking first the remote repository key fingerprint!

 Get the support materialCheck your mailbox for the link!  View on YouTube 

How to Install Docker on Debian/Ubuntu/CentOS?

Docker is a popular container technology allowing you to run services and processes in isolation. I started recently to use docker more and more for testing and education purposes. It’s definitely a lightweight alternative to full-fledged virtual machines since I can spawn an Ubuntu or CentOS environment on my Debian system in a matter of seconds.

But since the Docker project is evolving rapidly, that means, unless you are using a rolling distribution, the Docker version available in your system repository is probably outdated. Way outdated…​

Pay special attention to the remote repository key verification part. This is really an important step of the process to ensure you are installing a genuine software on your system. In fact, even if you do not plan to install Docker, you should watch the video at least for that part: too many installation tutorials out there simply ignore that — whereas blindly installing a new trust anchor on your system is a major security flaw!

How can I take the most of this video?

I encourage you to download the files used on the video so you will be able to try the same commands as me on your own system.

The link above will allow you to download a gzipped tar archive of the files used in the video. To extract the content of that archive on your system, you can use the command:

    tar xzf Yes_I_Know_IT-Ep15.tar.gz

What is the target audience?

To install Docker the way it is explained here, you must have access to a working Linux system and being able to open a root session there.

On many systems today, that simply means being able to issue one of these commands:

    # Require the current user being in the sudo group
    # May need to provide your *own* password
    sudo /bin/bash   # explicitly request a Bash shell
    sudo /bin/su     # use root's default shell


    # Require the *root* password
    su --shell /bin/bash   # explicitly request a Bash shell
    su                     # use root's default shell

I used the Bash shell on my system. But probably it should work the same with a different shell.

The video explicitly shows how to install Docker on Debian, Ubuntu, and CentOS. But the instructions for Debian/Ubuntu should work in most APT-based distributions (including all Ubuntu derivatives). And the CentOS instructions should work without any issue on RHEL, Fedora, and other RPM-based distributions.