Hi, guys.
In this video I want to explain you how to install Docker on Linux like system.
I'll tell you which Linux like systems are supported and how to get Docker up and running on such OS.
Please notice that Linux like system is basically native operating system for Docker and that's why
there is no need to create a separate virtual machine where containers will be running as it is done
for macOS and for Windows on Linux like systems, containers will be created directly without any intermediate
virtual machines.
Okay, let's get right into it.
And here in this example I have Ubuntu operating system version bionic 1804 and now let's open up Google
Chrome and here let's type install docker.
And click on first link.
Install Docker.
Docker Documentation.
You'll see on this page different options of installation of Docker.
And as I have noted before on macOS and on Windows, you need to install Docker desktop that will basically
create virtual machine Linux virtual machine.
And inside of that virtual machine you will run containers.
But if you run Linux like system, then you'll install Docker directly on your computer and create containers
directly on it.
Let's choose this option Docker for Linux.
And here on this page you will see description of Docker engine.
Here is list of supported platforms and you'll see that for macOS and for Windows you need to install
Docker desktop and inside of it, basically Docker engine will be running, but if you scroll a bit
down, you'll see list of server operating systems like CentOS, Debian or Ubuntu that are Linux like
systems that could be used for direct installation of Docker engine.
If you'll go to installation per distro, you'll see different options like install on CentOS, install
on Debian, install on ubuntu and so on.
I'm running now ubuntu.
That's why I'll click on this option install on ubuntu and on this page I'll see which ubuntu versions
are currently supported.
There are three of them ubuntu on ubuntu bionic and ubuntu xenial.
Now let me demonstrate you how you are able to verify which operating system you are currently running
on your computer.
Let me go to terminal and here first, let's check version of operating system.
Cut it htc slash os release.
You could use tab in order to auto complete command and I'll see that I'm currently running ubuntu version
is 1804 bionic beaver.
Also, I'm able to check version like so lsb underscore release dash x and I'll see bionic.
Also, you could verify your processor architecture.
Let me enter here.
Command uname dash m and I'll see that architecture in my case is x86 underscore 64.
Why is that important?
Here on this page you'll see that depending on different architectures, you need to enter different
commands here on this step on this one.
And by default architecture x86 underscore 64 is selected and command is here.
And basically that's architecture that I'm using right now.
Great.
Let's now start from the very beginning of this document and install Docker directly on Ubuntu operating
system.
Let's now start from the very beginning from this step number one with setting up repository.
Let me copy this command that will actually update information about packages.
Let me copy it.
Go to terminal, let me clear it and paste command like so enter.
Let me enter my password.
It will take some time.
Let's wait a bit.
Let me meanwhile copy your next command that will install some packages.
Let me copy the entire command like so notice that this command is splitted into different lines using
backslashes for better readability.
Let me copy it.
Go to terminal.
It was already updated.
Let me clear terminal paste command.
Enter.
Some of those packages were already present on this computer.
That's why there was no need to install, for example, Corel or CA certificates.
Okay, let's move on to next step.
Let me scroll a bit down.
Let me add official GPG key of Docker.
Copy this.
Command go to terminal.
Based.
Key was added.
And here you are able to verify.
Fingerprint.
Let me copy this command.
With this check, you are able to verify that you will download packages from Docker.com, not from
any other malicious server that has spoofed docker.com IP address or hostname.
Okay, let me enter this command and you'll see here fingerprints and you could compare them with those
mentioned here on this page.
And for example, if I'll compare this line, it will be same as in terminal in my case.
So it ends with CD 88.
Great.
Let's move on to next step.
And next you'll see instructions how to install stable repository.
You're also able to install so-called nightly or test repositories.
And if you want to install them, you could read how to do that here and learn about those repositories
in details.
By going to this link.
Let me scroll a bit down and here again, as I have shown you before, I'm using this architecture x86
64 and now let me copy this command go to terminal back and here paste it.
It will download the some packages.
Let's wait until it will be completed.
Okay.
All necessary files were downloaded.
Let's move on next and let's now install finally Docker engine.
You could again update APT packages.
Let me copy this command and paste here.
And let me copy the next command that will basically install Docker Community Engine and Docker CLI.
Let me copy this command.
Go to terminal and paste it here.
Yes, I want to continue.
Notice that this installation will take around 400MB of disk space.
It is actually much lower than the installation package for Windows or macOS.
Okay, let me scroll down a bit.
And here below on the step number two, you are able to see how to install a specific version of Docker
engine if you want to do so.
Now we should have Docker installed on this computer.
Let me clear terminal and enter command Docker Dash dash help.
It will list all commands available to use along with Docker and will see such commands as the Docker
version.
Docker Start.
And if I'll scroll up, you will see some additional management commands like Docker Container, Docker
Engine and so on.
That means that Docker was successfully installed on this computer and it is ready to use.
Let's proceed.
And next we will try to create very first Docker container using basic Hello world image.
See you next.
Bye bye.