[intro music]
Hi guys, welcome to the next
section. In the previous section we
have talked about the 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
the 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'll see Management
Commands block. For example, using
'image' Management Command, you are
able to manage images. Using 'secret'
command, you're able to manage
Docker secrets. Using 'volume'
Management Command, you're able to
manage volumes. Also below you'll
see a list of Commands. And those
commands basically don't require
additional arguments, but some of
them have available options and
you're able to supply some
additional arguments as options.
For example, there are such kind of
commands as exec, export, images.
With 'images' command, you're able to
list images that exist in your
local cache. With for example, 'ps'
command, you're able to list the
containers that are currently
running. That's the commands that
you could use. Alright, next, let
me explain you how you're able to
get help about a specific command.
Let me clear a terminal, Command K.
And here type 'docker ps --help'.
'ps' is a regular command,
it is not a Management Command. And
let's press Enter. And here in this
output, you'll see which options
you are able to use along with
'docker ps' command. There are short
versions of every option like
'-a', and there are also long versions
of every option like '--all'. And
if some longer options have
available shortcuts, then they will
be listed on the same line, like
this option, '-a', or '--all'.
And with this option,
you're able for example, to show
all containers including stopped
containers. In the same way you're
able to get help about Management
Commands. For example, if I'll type
'docker container --help'.
And in this output, you'll see a
list of available sub-commands that
you're able to use along with
'docker container' Management
Command, like attach, commit,
cp, create, diff, and so on. If you
want to get help about 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 will add option '--help'.
And here in this output,
you'll see basically help for this
specific command that you can use
along with this 'container'
Management Command. And you'll see
that this 'wait' command will, 'Block
until one or more containers stop,
then print their exit codes'. Also,
let's have a look at the help for
example for 'rm' command. 'docker
container rm --help'. And
you'll see that this sub-command
has basically some additional
available options like '-f' or
'--force'; '-l' or
'--link', and '-v' or
'--volumes'. Alright, that's how
you're 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 there. Bye-Bye.
[no audio]