Hi guys.
Welcome to the next section.
In the previous section we have talked about main Docker components like Docker Client, Docker host,
Docker Server, Docker Image, Docker Container Docker Registry and Docker Repository.
And also I have explained you differences between virtual machines and Docker containers.
And in this section we will start some practice activities and I would like to start with explanation
of list of commands that you are able to use in Docker.
And there are two different blocks of commands called management commands and commands.
Historically, before in Docker there were only commands, but as you see here on this diagram, list
of commands is very large and as soon as the list of Docker commands became very large, Docker developers
have decided to split those commands into management commands.
And now there are several management commands available like container context, image network, node
plugin and so on.
And basically along with management commands, you are able to use additional commands.
It means that management commands require additional commands as arguments.
Let me now quickly go to terminal and show you those commands in practice Docker and you should get
the list of all available commands with short descriptions.
And if you scroll up to the beginning of this output, you will see management commands.
Block For example, using Image Management Command, you are able to manage images using secret command.
You are able to manage Docker secrets.
Using volume management Command, you are able to manage volumes.
Also below you will see list of commands.
And those commands basically don't require additional arguments, but some of them have available options
and you are able to supply some additional arguments as options.
For example, there are such kind of commands as exec export images.
With images command.
You are able to list images that exist in your local cache with, for example, PS command.
You are able to list containers that are currently running.
That's the comments that you could use.
All right.
Next, let me explain you how you are able to get help about specific command.
Let me clear terminal command K and here type Docker, PS, dash, dash help.
PS is a regular command.
It is not a management command.
And let's press enter.
And here in this output you will see which options you are able to use along with Docker PS Command.
There are short versions of every option like Dash A and there are also long versions of every option
like dash dash all.
And if some long options have available shortcuts, then they will be listed on the same line like this
option dash A or dash dash all.
And with this option you are able, for example, to show all containers, including stopped containers,
in the same way you are able to get help about management commands.
For example, if I'll type Docker container dash, dash help and in this output you'll see list of available
sub commands that you are able to use along with Docker container management command, like attach,
commit, create diff and so on.
If you want to get help about a specific command for management command, you need to type this sub
command after management command like this docker container.
Let's say I want to get help about wait command, wait.
And next I'll add option, dash, dash, help.
And here in this output you'll see basically help for this specific command that you could use along
with this container management command.
And you see that this wait command will block until one or more container stop, then print their exit
codes.
Also, let's have a look at the help.
For example for command Docker container M dash dash help and you'll see that this sub command has basically
some additional available options like F or dash dash force dash L or dash dash link and dash V or dash
dash volumes.
All right.
That's how you are able to get help about Docker commands and Docker management commands.
But basically some of Docker commands are redundant to Docker management commands.
And let me talk about that in the next lecture.
I'll see you then.
Bye bye.