1
00:00:04,260 --> 00:00:05,040
Hi guys.

2
00:00:05,040 --> 00:00:06,630
Welcome to the next section.

3
00:00:06,630 --> 00:00:12,390
In the previous section we have talked about main Docker components like Docker Client, Docker host,

4
00:00:12,420 --> 00:00:18,150
Docker Server, Docker Image, Docker Container Docker Registry and Docker Repository.

5
00:00:18,150 --> 00:00:23,790
And also I have explained you differences between virtual machines and Docker containers.

6
00:00:23,790 --> 00:00:30,090
And in this section we will start some practice activities and I would like to start with explanation

7
00:00:30,090 --> 00:00:34,380
of list of commands that you are able to use in Docker.

8
00:00:34,380 --> 00:00:40,380
And there are two different blocks of commands called management commands and commands.

9
00:00:40,770 --> 00:00:48,930
Historically, before in Docker there were only commands, but as you see here on this diagram, list

10
00:00:48,930 --> 00:00:57,540
of commands is very large and as soon as the list of Docker commands became very large, Docker developers

11
00:00:57,540 --> 00:01:02,250
have decided to split those commands into management commands.

12
00:01:02,250 --> 00:01:10,510
And now there are several management commands available like container context, image network, node

13
00:01:10,510 --> 00:01:11,980
plugin and so on.

14
00:01:11,980 --> 00:01:17,800
And basically along with management commands, you are able to use additional commands.

15
00:01:17,800 --> 00:01:22,240
It means that management commands require additional commands as arguments.

16
00:01:22,360 --> 00:01:29,380
Let me now quickly go to terminal and show you those commands in practice Docker and you should get

17
00:01:29,380 --> 00:01:33,190
the list of all available commands with short descriptions.

18
00:01:33,190 --> 00:01:38,620
And if you scroll up to the beginning of this output, you will see management commands.

19
00:01:38,620 --> 00:01:48,580
Block For example, using Image Management Command, you are able to manage images using secret command.

20
00:01:48,580 --> 00:01:50,860
You are able to manage Docker secrets.

21
00:01:50,890 --> 00:01:55,600
Using volume management Command, you are able to manage volumes.

22
00:01:56,620 --> 00:01:59,290
Also below you will see list of commands.

23
00:01:59,290 --> 00:02:05,680
And those commands basically don't require additional arguments, but some of them have available options

24
00:02:05,680 --> 00:02:08,720
and you are able to supply some additional arguments as options.

25
00:02:08,740 --> 00:02:14,620
For example, there are such kind of commands as exec export images.

26
00:02:14,620 --> 00:02:15,990
With images command.

27
00:02:16,000 --> 00:02:22,840
You are able to list images that exist in your local cache with, for example, PS command.

28
00:02:22,870 --> 00:02:26,740
You are able to list containers that are currently running.

29
00:02:27,790 --> 00:02:30,190
That's the comments that you could use.

30
00:02:30,220 --> 00:02:31,060
All right.

31
00:02:31,090 --> 00:02:36,340
Next, let me explain you how you are able to get help about specific command.

32
00:02:36,370 --> 00:02:42,640
Let me clear terminal command K and here type Docker, PS, dash, dash help.

33
00:02:42,670 --> 00:02:44,350
PS is a regular command.

34
00:02:44,350 --> 00:02:45,790
It is not a management command.

35
00:02:45,790 --> 00:02:47,320
And let's press enter.

36
00:02:47,320 --> 00:02:54,790
And here in this output you will see which options you are able to use along with Docker PS Command.

37
00:02:54,910 --> 00:03:02,140
There are short versions of every option like Dash A and there are also long versions of every option

38
00:03:02,140 --> 00:03:03,610
like dash dash all.

39
00:03:03,610 --> 00:03:11,980
And if some long options have available shortcuts, then they will be listed on the same line like this

40
00:03:11,980 --> 00:03:14,680
option dash A or dash dash all.

41
00:03:14,950 --> 00:03:21,010
And with this option you are able, for example, to show all containers, including stopped containers,

42
00:03:21,310 --> 00:03:25,120
in the same way you are able to get help about management commands.

43
00:03:25,120 --> 00:03:33,820
For example, if I'll type Docker container dash, dash help and in this output you'll see list of available

44
00:03:33,820 --> 00:03:41,190
sub commands that you are able to use along with Docker container management command, like attach,

45
00:03:41,230 --> 00:03:44,370
commit, create diff and so on.

46
00:03:44,380 --> 00:03:51,670
If you want to get help about a specific command for management command, you need to type this sub

47
00:03:51,670 --> 00:03:55,600
command after management command like this docker container.

48
00:03:55,840 --> 00:03:59,890
Let's say I want to get help about wait command, wait.

49
00:03:59,890 --> 00:04:03,070
And next I'll add option, dash, dash, help.

50
00:04:03,580 --> 00:04:09,970
And here in this output you'll see basically help for this specific command that you could use along

51
00:04:09,970 --> 00:04:12,250
with this container management command.

52
00:04:12,250 --> 00:04:19,510
And you see that this wait command will block until one or more container stop, then print their exit

53
00:04:19,510 --> 00:04:20,130
codes.

54
00:04:20,140 --> 00:04:22,660
Also, let's have a look at the help.

55
00:04:22,660 --> 00:04:33,410
For example for command Docker container M dash dash help and you'll see that this sub command has basically

56
00:04:33,410 --> 00:04:42,380
some additional available options like F or dash dash force dash L or dash dash link and dash V or dash

57
00:04:42,380 --> 00:04:43,680
dash volumes.

58
00:04:43,700 --> 00:04:44,450
All right.

59
00:04:44,450 --> 00:04:49,970
That's how you are able to get help about Docker commands and Docker management commands.

60
00:04:50,180 --> 00:04:56,510
But basically some of Docker commands are redundant to Docker management commands.

61
00:04:56,510 --> 00:04:58,880
And let me talk about that in the next lecture.

62
00:04:58,880 --> 00:04:59,720
I'll see you then.

63
00:04:59,720 --> 00:05:00,350
Bye bye.

