1
00:00:04,200 --> 00:00:05,560
I have just explained you.

2
00:00:05,700 --> 00:00:11,420
What is default bridge network and you know understand that containers may communicate between each

3
00:00:11,430 --> 00:00:19,080
other using own IP addresses assigned randomly by Dr. Holst and we can verify that using Too Busy Box

4
00:00:19,080 --> 00:00:20,130
containers.

5
00:00:20,370 --> 00:00:23,680
Next important concept is environment variable.

6
00:00:23,700 --> 00:00:24,900
Let me explain the thrust.

7
00:00:24,900 --> 00:00:26,480
What is an environment variable.

8
00:00:26,520 --> 00:00:32,810
And afterwards I'll explain you how you are able to set custom environment variable for specific container.

9
00:00:33,000 --> 00:00:33,670
Great.

10
00:00:33,690 --> 00:00:36,740
We are now still running to the box containers.

11
00:00:36,840 --> 00:00:39,120
Let me clear our time and no one of them.

12
00:00:39,120 --> 00:00:45,970
And here simply type command and view like so and you'll get list of let's say key.

13
00:00:45,970 --> 00:00:47,820
Well your piracy hero.

14
00:00:47,860 --> 00:00:56,720
He's all names of environment variables hostname CHL the L home DRM bath and BW deal.

15
00:00:56,790 --> 00:01:04,290
And that's up the fold the variables that are set to out of the box for every busy box container and

16
00:01:04,290 --> 00:01:10,890
again set of environment variables is different for different containers and we could easily verified

17
00:01:10,920 --> 00:01:16,590
it less in a nasal tap lounge and I was a container for example or born into container dock are all

18
00:01:17,020 --> 00:01:17,410
wrong.

19
00:01:17,430 --> 00:01:26,920
This item bundle and let's type in view here and you'll see a bunch of different environment variables

20
00:01:27,160 --> 00:01:30,760
that the way are set for these specific container.

21
00:01:30,820 --> 00:01:37,980
For example you'll see here variable called ALAS underscore coloreds or you'll see another hostname

22
00:01:38,040 --> 00:01:44,080
body but it is actually the same variable as it was set for those containers but hostname here is different

23
00:01:44,080 --> 00:01:46,660
of course from this hostname.

24
00:01:46,780 --> 00:01:55,030
Also you may see that such variables as BW due home are the same for this container and this container.

25
00:01:55,690 --> 00:02:01,250
But again those variables are set for each specific container individually.

26
00:02:01,300 --> 00:02:08,300
Also you are able to verify environment variables without logging into stage or by a shell by doing

27
00:02:08,300 --> 00:02:08,800
the following.

28
00:02:08,979 --> 00:02:16,270
Let me go out from this container terminal let's list the containers that are currently running.

29
00:02:16,270 --> 00:02:23,590
There are two busy box containers and you are able to use exact amount in order to execute Ian view

30
00:02:23,610 --> 00:02:25,450
command inside of the container.

31
00:02:25,450 --> 00:02:26,410
Let's do so.

32
00:02:26,510 --> 00:02:30,210
Docker exactly and here will be ideal container.

33
00:02:30,220 --> 00:02:33,830
For example this one a five and next type Ian view.

34
00:02:34,080 --> 00:02:40,330
Again here is command that will override default command and we will actually create additional process

35
00:02:40,390 --> 00:02:44,400
that will be executed inside of specific container with specific ideas.

36
00:02:44,570 --> 00:02:47,940
Let's press enter and you'll also see environment variables.

37
00:02:47,980 --> 00:02:53,950
But notice that there was this command you'll see less and environment variables then in this case because

38
00:02:53,950 --> 00:03:01,330
in this case we are looking at environment variables inside of DCH shell that actually added some additional

39
00:03:01,330 --> 00:03:05,340
environment variables when we have looked into stage show.

40
00:03:05,540 --> 00:03:11,070
That's the reason why here was a set of environment variables that is larger than here.

41
00:03:11,080 --> 00:03:11,890
Wonderful.

42
00:03:11,890 --> 00:03:17,980
But what does a sense actually of using indoors environment variables but often applications require

43
00:03:18,100 --> 00:03:24,740
some initial setting parameters like a password to use a name or some connection details or something

44
00:03:24,740 --> 00:03:30,530
else and you are able to set those values before start of the application.

45
00:03:30,580 --> 00:03:37,200
For example let's say that your application needs to connect to some external server and for that that

46
00:03:37,270 --> 00:03:43,900
it needs to use credentials username and password and it is not safe to store this user name and password

47
00:03:44,200 --> 00:03:46,680
inside of the application files.

48
00:03:46,750 --> 00:03:52,120
It is not safe at all because anyone else might easily read this user name and password and the use

49
00:03:52,120 --> 00:03:53,770
for its own purposes.

50
00:03:53,770 --> 00:04:01,420
This way you are able to initialize dos parameters username and password when application is started

51
00:04:01,630 --> 00:04:04,810
and you are able to use for that environment variables.

52
00:04:04,810 --> 00:04:09,550
Also you are able to override any default environment variables if you want.

53
00:04:09,970 --> 00:04:15,400
Again it's a pretty common concept to use environment variables in different applications and we will

54
00:04:15,400 --> 00:04:19,140
use those variables multiple times through our discourse.

55
00:04:19,420 --> 00:04:21,079
For now that's all for this Loescher.

56
00:04:21,190 --> 00:04:22,050
And let's proceed.

57
00:04:22,089 --> 00:04:28,240
And next as promised let's create my escrow container and see whether it will be started or not by default

58
00:04:28,270 --> 00:04:31,090
without any additional environment timetables.

59
00:04:31,090 --> 00:04:31,930
I'll see you next.

60
00:04:31,930 --> 00:04:32,440
Bye bye.

