1
00:00:04,270 --> 00:00:10,280
Well let's go on in the previous lecture we have agreed that the container using a 1 2 image.

2
00:00:10,330 --> 00:00:15,250
And here you see that its size is around 65 megabytes.

3
00:00:15,520 --> 00:00:17,590
It is a large and container rolled.

4
00:00:17,800 --> 00:00:23,040
And here in this lecture I'll demonstrate how to use an ounce or much gold Busy Box.

5
00:00:23,380 --> 00:00:29,020
But before doing that let me quickly summarize what we have learned in the previous lecture.

6
00:00:29,050 --> 00:00:35,080
You have seen that if you simply create container or using a good dock Iran will want to come and you

7
00:00:35,110 --> 00:00:40,990
will basically see that container will be created but it will be exited automatically because brought

8
00:00:40,990 --> 00:00:44,430
us inside of that container will be terminated automatically.

9
00:00:44,530 --> 00:00:49,080
And if there are no protesters running Docker will terminate such container.

10
00:00:49,120 --> 00:00:51,370
It is a first important outcome.

11
00:00:52,060 --> 00:00:57,880
Secondly you have seen that with option best 18 basically does a combination of two different options

12
00:00:57,990 --> 00:01:05,170
Dash I and the steam it you play into I'll explain you what those options mean you were able to get

13
00:01:05,260 --> 00:01:13,360
access to bash shell inside all that will want to container and as soon as you are locked into the container

14
00:01:13,690 --> 00:01:19,930
it will be still up and running and we were able to execute some basic commands and for example we have

15
00:01:19,930 --> 00:01:27,010
at least that the contents of the being the folder inside the container but as soon as we exit that

16
00:01:27,010 --> 00:01:33,970
from bash shell container was terminated and the reason for that is the same as before brought us best

17
00:01:34,210 --> 00:01:41,400
was terminated there Well no a the process is running and docker has terminated such container that's

18
00:01:41,460 --> 00:01:42,980
that simple.

19
00:01:43,030 --> 00:01:49,990
Also here in this output you can see that there are two different images available locally or brutal

20
00:01:50,170 --> 00:01:51,920
and hello world.

21
00:01:52,180 --> 00:01:59,620
And if you want to create any container using already existing images in your local cache then there

22
00:01:59,620 --> 00:02:04,830
was no need to pull those images from a remote registry Docker Hub.

23
00:02:04,930 --> 00:02:05,470
Great.

24
00:02:05,560 --> 00:02:12,010
Let's not get to our third example where we will use busy box image and let's do the same as we have

25
00:02:12,010 --> 00:02:13,640
done with a wound too much.

26
00:02:13,780 --> 00:02:22,630
And let's simply dial Docker Iran busy box Anto again unable to find emerging music box so locally and

27
00:02:22,630 --> 00:02:30,700
now we are Wooleen good such image from a remote registry from Docker Hub pull complete digest is here

28
00:02:30,980 --> 00:02:38,350
and straddles the lauded new AR image for busy box latest basically let me shortly explain you what

29
00:02:38,350 --> 00:02:47,590
to call the latest here and here means each image has specific tag and this latest here and here is

30
00:02:47,620 --> 00:02:54,340
actually tech if you don't specify a tech for specific image you want to use here we have specified

31
00:02:54,430 --> 00:03:03,460
simply name of the image busy box Docker we'll append Dec latest latest is usually latest stable version

32
00:03:03,550 --> 00:03:10,720
of each image but you are able to use different tags and the usually same you might you may have multiple

33
00:03:10,720 --> 00:03:16,510
different texts and we will look at that a bit later for now please understand that this is simply tech

34
00:03:16,810 --> 00:03:23,470
and if you don't specify a tech for you which you want to use then that latest will be added automatically

35
00:03:24,070 --> 00:03:32,020
great we have tried to run busy box container and again we have returned back to our terminal and behavior

36
00:03:32,020 --> 00:03:39,250
here is the same as we have observed when we are running a wound to image and if I enter Docker up the

37
00:03:39,400 --> 00:03:46,960
now you'll see that there are no container currently you're on but if I'll enter Docker B S Dash 8 you'll

38
00:03:46,960 --> 00:03:55,230
see that there are was busy box container that was exhausted in my case five minutes ago and the fourth

39
00:03:55,240 --> 00:04:05,090
command that was executed was c h command c h is basically also shell same as was bash but you see here

40
00:04:05,120 --> 00:04:13,430
that there was no path to slash bin folder we have simply executed under the hood c h command great

41
00:04:13,760 --> 00:04:21,730
let's not try to enter this container using dash I.D. option let me clear a terminal and run container

42
00:04:21,800 --> 00:04:30,440
like so dock around this idea busy box in such case we will not again pull busy box image from remote

43
00:04:30,440 --> 00:04:37,730
registry because it's already present not a local cash okay enter and we are now inside of that busy

44
00:04:37,730 --> 00:04:45,890
box container and if I'll enter Dr. Pierce now in a nasal tap Dr. P S you'll see that Dow was busy box

45
00:04:45,890 --> 00:04:50,840
container we're running right now and it is up for the seconds.

46
00:04:50,840 --> 00:04:51,280
Okay.

47
00:04:51,410 --> 00:04:57,520
Let's now use here less comment and see whereas our such comment is available inside of this container

48
00:04:57,690 --> 00:04:58,330
alas.

49
00:04:58,550 --> 00:05:05,540
And yes this commander's here but you see much shorter list of folders than we have seen in a boon to

50
00:05:05,540 --> 00:05:06,900
container.

51
00:05:06,980 --> 00:05:08,980
Let's have a look at the contents of the bin folder.

52
00:05:09,000 --> 00:05:15,580
L s been and you'll see such list of executable here inside of the been folder.

53
00:05:15,710 --> 00:05:21,530
And for example if you'll try to find the echo command it will be present here as well.

54
00:05:21,530 --> 00:05:23,300
And you are able to use it of course.

55
00:05:23,510 --> 00:05:28,810
Echo hello from busy box.

56
00:05:28,860 --> 00:05:32,500
And you'll see hello from busy box here in this cell.

57
00:05:32,500 --> 00:05:37,360
Also this doorway one more comment for example uptime you'll see that this command should be present

58
00:05:37,360 --> 00:05:44,380
here on this list looking scroll a bit up and here was this command uptime less press enter and you'll

59
00:05:44,380 --> 00:05:50,620
see uptime of this Linux container it is up around six minutes.

60
00:05:51,100 --> 00:05:58,090
Also it has the same amount as K D I R you are able to create your folder for example let's create my

61
00:05:58,270 --> 00:06:06,580
folder let's send it to my folder and here let's create the new file Deitch file do the next deal and

62
00:06:06,580 --> 00:06:14,140
you'll see that in your file was created it means that this container has really a nice set of a deal

63
00:06:14,140 --> 00:06:16,830
it is that you are able to use out of the box.

64
00:06:16,960 --> 00:06:22,030
Also if you want you're able to install additional duties if you need to do so but what is actually

65
00:06:22,030 --> 00:06:30,430
a busy box busy box is a really small distribution that has a really large set of utilities but also

66
00:06:30,440 --> 00:06:38,110
deal is a custom and they are actually really small in size and usually this busy box installation is

67
00:06:38,110 --> 00:06:45,310
packaged as a single executable file and let's have a look at the size of this busy box image in comparison

68
00:06:45,310 --> 00:06:52,690
to a wound to image let's exit this container like so and if I'll list the containers that are running

69
00:06:52,690 --> 00:06:56,910
right now you'll see that there are no containers let me do that Docker.

70
00:06:57,040 --> 00:07:04,240
Yes yes there are no containers currently running because we have eggs that the sea age brought us and

71
00:07:04,240 --> 00:07:09,880
container was automatically terminated and if I'll have a look at the history you'll see that there

72
00:07:09,880 --> 00:07:16,680
was a busy box container that was exited 19 seconds ago great I wanted to show you the size of visible

73
00:07:16,750 --> 00:07:24,430
container let's clear a terminal and least local images Docker images and you'll see a wound to busy

74
00:07:24,430 --> 00:07:31,330
books and hello rolled here on the list and now have a look at the size of visa box image it is a bit

75
00:07:31,390 --> 00:07:40,510
larger than one megabyte in comparison to a wound to its size this size is really really insanely small

76
00:07:41,890 --> 00:07:48,900
there's the smallest the Linux container available it has again built instead of facilities and you

77
00:07:48,900 --> 00:07:57,030
are able to use them but it is much much much more smaller then or boom to image great that's how you're

78
00:07:57,030 --> 00:08:01,440
able to create the containers using busy box image.

79
00:08:01,680 --> 00:08:02,460
Let's now proceed.

80
00:08:02,460 --> 00:08:09,510
And next let me show you one more image that is based actually on a busy box image and that image is

81
00:08:09,510 --> 00:08:11,080
called Alpine.

82
00:08:11,100 --> 00:08:12,490
Let's get a look at it next.

83
00:08:12,490 --> 00:08:12,920
Bye bye.

