1
00:00:01,246 --> 00:00:03,550
Now did we know compose

2
00:00:03,550 --> 00:00:05,060
and we started building

3
00:00:06,038 --> 00:00:07,240
at least a little bit bigger applications

4
00:00:07,240 --> 00:00:10,290
and we know how to work with multiple containers.

5
00:00:10,290 --> 00:00:11,970
I wanna dig a bit deeper

6
00:00:11,970 --> 00:00:15,210
into what you can do with Dockers and containers.

7
00:00:15,210 --> 00:00:17,530
And I specifically wanna have a look at a concept

8
00:00:17,530 --> 00:00:22,530
which I like to call "utility containers."

9
00:00:22,980 --> 00:00:25,120
Now that's not an official term,

10
00:00:25,120 --> 00:00:28,410
utility containers is not an official term.

11
00:00:28,410 --> 00:00:31,373
It's just a term I like to use and after this module

12
00:00:31,373 --> 00:00:34,540
you will know why I like to use it.

13
00:00:34,540 --> 00:00:38,560
Because here's what I mean with utility containers..

14
00:00:38,560 --> 00:00:41,214
Up to this point in all examples and all sections,

15
00:00:41,214 --> 00:00:45,583
we always worked with application containers

16
00:00:45,583 --> 00:00:47,791
that were Docker containers

17
00:00:47,791 --> 00:00:50,999
that contained our application, our application code

18
00:00:50,999 --> 00:00:55,999
and the environment we need to execute this application.

19
00:00:56,330 --> 00:00:57,910
And don't get me wrong,

20
00:00:57,910 --> 00:01:01,830
this is the primary selling point of Docker.

21
00:01:01,830 --> 00:01:05,290
This is one of the primary reasons of using Docker

22
00:01:05,290 --> 00:01:07,398
and it is the core idea behind Docker.

23
00:01:07,398 --> 00:01:10,950
So this is absolutely the most important thing with Docker.

24
00:01:10,950 --> 00:01:13,387
And the idea here was simple.

25
00:01:13,387 --> 00:01:16,130
We build our own Docker file,

26
00:01:16,130 --> 00:01:18,550
and then when we ran Docker run

27
00:01:18,550 --> 00:01:20,420
maybe with some extra options

28
00:01:20,420 --> 00:01:22,850
or with help off Docker compose

29
00:01:22,850 --> 00:01:25,283
this command in the darker file get executed,

30
00:01:25,283 --> 00:01:29,275
and our note API or react single page application

31
00:01:29,275 --> 00:01:32,360
or database started up.

32
00:01:32,360 --> 00:01:34,440
That is what we did this far.

33
00:01:34,440 --> 00:01:38,580
And again, that is the most important part of Docker

34
00:01:38,580 --> 00:01:40,910
that is what a Docker is all about.

35
00:01:40,910 --> 00:01:43,540
But this does not mean

36
00:01:43,540 --> 00:01:46,576
that we cannot leverage Docker for other things as well.

37
00:01:46,576 --> 00:01:51,576
And that is where utility containers come into play.

38
00:01:52,000 --> 00:01:53,900
With utility containers,

39
00:01:53,900 --> 00:01:55,425
I in the end mean containers

40
00:01:55,425 --> 00:01:59,350
which only have a certain environment in them.

41
00:01:59,350 --> 00:02:03,470
Let's say a node JS environment or a PHP environment

42
00:02:03,470 --> 00:02:04,483
something like that.

43
00:02:05,590 --> 00:02:09,110
And the idea here is that they don't start an application

44
00:02:09,110 --> 00:02:10,139
when you run them,

45
00:02:10,139 --> 00:02:12,640
but instead you run them in conjunction

46
00:02:12,640 --> 00:02:15,480
with some command specified by you

47
00:02:15,480 --> 00:02:17,834
to then execute a certain task.

48
00:02:17,834 --> 00:02:21,850
And this is a syntax we haven't seen this far.

49
00:02:21,850 --> 00:02:24,630
It's a syntax we haven't used this far.

50
00:02:24,630 --> 00:02:27,265
Adding an extra command after the image name

51
00:02:27,265 --> 00:02:29,520
when starting a container.

52
00:02:29,520 --> 00:02:32,220
But it is something we're going to have a closer look at

53
00:02:32,220 --> 00:02:34,990
in this module because this is something where

54
00:02:34,990 --> 00:02:37,123
Docker is also able to shine.

