1
00:00:02,180 --> 00:00:03,690
Now in this lecture we are going

2
00:00:03,690 --> 00:00:05,750
to install Docker on Windows,

3
00:00:05,750 --> 00:00:10,160
so obviously you can skip it if you're on Mac OS or Linux.

4
00:00:10,160 --> 00:00:13,210
Now, we can click on Get started to be taken to the page

5
00:00:13,210 --> 00:00:16,149
where we can download Docker Desktop for Windows

6
00:00:16,149 --> 00:00:17,500
and we will use that.

7
00:00:17,500 --> 00:00:22,400
But before we start doing that actually go to developers

8
00:00:22,400 --> 00:00:24,920
and then Docs here in the Menu

9
00:00:24,920 --> 00:00:28,930
and then there click on Download and Install.

10
00:00:28,930 --> 00:00:31,160
And then Docker Desktop for Windows,

11
00:00:31,160 --> 00:00:34,010
so that you can learn about these system requirements

12
00:00:34,010 --> 00:00:36,973
which you have to meet in order to be able to install it.

13
00:00:37,960 --> 00:00:42,100
And you need either Windows 10 Enterprise Pro

14
00:00:42,100 --> 00:00:46,900
or Education or Windows 10 Home to use Docker Desktop

15
00:00:46,900 --> 00:00:49,780
if you have an older version of Windows, Windows 8

16
00:00:49,780 --> 00:00:52,810
or 7 the next lecture is for you.

17
00:00:52,810 --> 00:00:55,300
Because there I show you an alternative way

18
00:00:55,300 --> 00:00:58,170
of installing Docker but if you have any chance

19
00:00:58,170 --> 00:01:00,760
of using Docker Desktop which we're going to install

20
00:01:00,760 --> 00:01:03,920
in this lecture definitely use that chance.

21
00:01:03,920 --> 00:01:07,580
So if you, for example are able to upgrade to Windows 10

22
00:01:07,580 --> 00:01:09,543
you might wanna consider doing that.

23
00:01:10,520 --> 00:01:15,160
Now if you've got Windows 10 Pro Enterprise or Education,

24
00:01:15,160 --> 00:01:20,010
you need to have Hyper V and Containers features enabled.

25
00:01:20,010 --> 00:01:23,540
And in order to enable both of that,

26
00:01:23,540 --> 00:01:26,980
you can search for Windows 10 enable Hyper V

27
00:01:26,980 --> 00:01:30,060
to find certain instructions on how to do that,

28
00:01:30,060 --> 00:01:32,610
you best follow the approach described here

29
00:01:32,610 --> 00:01:35,840
on the official Microsoft webpages.

30
00:01:35,840 --> 00:01:38,240
And in the end you just need to run one command

31
00:01:38,240 --> 00:01:41,930
to enable Hyper V, you need to do that in PowerShell

32
00:01:41,930 --> 00:01:43,820
which is a default tool that ships

33
00:01:43,820 --> 00:01:46,610
with your Windows installation which you have to run

34
00:01:46,610 --> 00:01:48,830
as administrator.

35
00:01:48,830 --> 00:01:51,640
Now once you are running this as administrator

36
00:01:51,640 --> 00:01:55,270
make sure you copy and paste this command into PowerShell

37
00:01:55,270 --> 00:01:58,380
and simply execute it and this will enable

38
00:01:58,380 --> 00:02:01,400
a functionality in your operating system

39
00:02:01,400 --> 00:02:04,150
which Docker Desktop needs to in the end

40
00:02:04,150 --> 00:02:06,933
run these Docker containers on your system.

41
00:02:08,039 --> 00:02:10,830
So make sure you enable this,

42
00:02:10,830 --> 00:02:14,460
and thereafter in the same administrators

43
00:02:14,460 --> 00:02:17,750
started PowerShell session run another command

44
00:02:17,750 --> 00:02:20,300
which you find in an attached file.

45
00:02:20,300 --> 00:02:23,480
Actually in that attached file you find both commands

46
00:02:23,480 --> 00:02:27,360
but now we need this enable containers command here

47
00:02:27,360 --> 00:02:30,273
and run this in your PowerShell as well.

48
00:02:31,170 --> 00:02:33,310
With that you enable the two features

49
00:02:33,310 --> 00:02:38,310
which you need to enable, if you are on Windows 10 Home,

50
00:02:38,550 --> 00:02:41,550
then you gotta separate page here with more steps

51
00:02:41,550 --> 00:02:45,440
you need to follow in order to install Docker Desktop.

52
00:02:45,440 --> 00:02:47,730
So click on that install Docker Desktop

53
00:02:47,730 --> 00:02:50,720
on Windows Home link and make sure you meet

54
00:02:50,720 --> 00:02:53,220
all these requirements here.

55
00:02:53,220 --> 00:02:56,970
Specifically, you need to enable the WSL 2 feature

56
00:02:56,970 --> 00:02:59,390
on Windows and you got another link

57
00:02:59,390 --> 00:03:02,670
to the Microsoft documentation which informs you

58
00:03:02,670 --> 00:03:04,600
how you can do that.

59
00:03:04,600 --> 00:03:07,030
It's again in the end very simple.

60
00:03:07,030 --> 00:03:11,330
You first of all need to enable the WSL feature

61
00:03:11,330 --> 00:03:14,610
by running this command again in PowerShell,

62
00:03:14,610 --> 00:03:17,260
started as an administrator.

63
00:03:17,260 --> 00:03:20,190
You don't need to do this on Windows 10 Pro

64
00:03:20,190 --> 00:03:23,930
but you need to do this on Windows 10 Home

65
00:03:23,930 --> 00:03:27,233
and then execute this command here in PowerShell.

66
00:03:28,440 --> 00:03:32,880
And once you did that you need to update to WSL 2

67
00:03:32,880 --> 00:03:35,183
by following the steps outlined here.

68
00:03:36,630 --> 00:03:40,150
Thereafter, make sure you enable the virtual machine feature

69
00:03:40,150 --> 00:03:45,150
by running this command here in PowerShell as administrator,

70
00:03:45,680 --> 00:03:48,903
obviously you can also leave PowerShell up and running.

71
00:03:49,840 --> 00:03:54,840
So hit enter and now with that you need to download

72
00:03:55,460 --> 00:04:00,310
a Linux kernel update package because WSL 2 in the end

73
00:04:00,310 --> 00:04:05,310
is a Linux installation inside of your Windows installation,

74
00:04:05,330 --> 00:04:08,940
and that Linux installation will be used by Docker Desktop

75
00:04:08,940 --> 00:04:10,663
and by Docker itself then.

76
00:04:11,520 --> 00:04:14,410
Now therefore, we now needed to enable an updated,

77
00:04:14,410 --> 00:04:18,190
now we need to download the Linux kernel update package

78
00:04:18,190 --> 00:04:21,750
and that again can be done with the link you find here.

79
00:04:21,750 --> 00:04:26,490
It simply downloads a file which you can execute,

80
00:04:26,490 --> 00:04:28,940
walk through that installer which should be super quick

81
00:04:28,940 --> 00:04:32,360
and which in the end then just updates your Linux kernel

82
00:04:32,360 --> 00:04:36,630
inside off that Linux system which you have inside

83
00:04:36,630 --> 00:04:38,313
of your Windows system.

84
00:04:39,890 --> 00:04:42,900
Then execute this command here in PowerShell

85
00:04:42,900 --> 00:04:47,900
as administrator, to set version 2 of this Linux

86
00:04:48,520 --> 00:04:52,260
inside Windows solution here as a default version

87
00:04:53,860 --> 00:04:56,930
and then install an actual Linux distribution

88
00:04:56,930 --> 00:04:58,220
of your choice.

89
00:04:58,220 --> 00:05:00,900
So that will then be the Linux operating system

90
00:05:00,900 --> 00:05:03,080
running inside of your Windows system

91
00:05:03,080 --> 00:05:04,840
in addition to Windows of course,

92
00:05:04,840 --> 00:05:08,283
it does not replace Windows it just runs in addition.

93
00:05:09,210 --> 00:05:11,710
Now here, you can really follow these instructions

94
00:05:11,710 --> 00:05:14,070
and pick any distribution you want,

95
00:05:14,070 --> 00:05:17,900
Ubuntu is a very typical choice here and simply then

96
00:05:17,900 --> 00:05:21,530
walk through the installer here and follow the other steps

97
00:05:21,530 --> 00:05:23,870
which are outlined in this article.

98
00:05:23,870 --> 00:05:26,860
You don't need to install the Windows terminal here

99
00:05:26,860 --> 00:05:30,310
if you don't want to, you can but you don't have to

100
00:05:30,310 --> 00:05:31,520
and your therefore done.

101
00:05:31,520 --> 00:05:34,320
Now, if you're facing any problems also have a look at

102
00:05:34,320 --> 00:05:37,320
the troubleshooting guidelines here at the bottom

103
00:05:37,320 --> 00:05:39,570
of this Microsoft article which of course

104
00:05:39,570 --> 00:05:41,750
also find attached to this lecture.

105
00:05:41,750 --> 00:05:44,780
And once you did all of that you're also prepared

106
00:05:44,780 --> 00:05:46,780
to install Docker Desktop

107
00:05:46,780 --> 00:05:50,380
on your Windows 10 Home installation.

108
00:05:50,380 --> 00:05:53,700
Again, this was not required as I mentioned before

109
00:05:53,700 --> 00:05:58,700
if you are on Windows 10 Pro or Enterprise or Education.

110
00:05:58,870 --> 00:06:01,630
Of course, you also must meet the hardware requirements

111
00:06:01,630 --> 00:06:03,830
outlined here and outlined here

112
00:06:03,830 --> 00:06:06,410
which are the same requirements

113
00:06:06,410 --> 00:06:09,040
and once all of that is set up therefore,

114
00:06:09,040 --> 00:06:11,350
you now can use that installer

115
00:06:11,350 --> 00:06:14,080
which you find on the Getting Started page.

116
00:06:14,080 --> 00:06:17,570
So simply download Docker Desktop for Windows

117
00:06:18,550 --> 00:06:21,300
and then wait for this installer to be downloaded

118
00:06:21,300 --> 00:06:24,360
which can take a while of course and once it is downloaded

119
00:06:24,360 --> 00:06:25,880
walk through the installer.

120
00:06:25,880 --> 00:06:27,440
Now we're going to do this together,

121
00:06:27,440 --> 00:06:29,810
so let me just wait until this is finished

122
00:06:29,810 --> 00:06:31,210
and I'll be back thereafter.

123
00:06:32,820 --> 00:06:35,580
Now once this was downloaded simply double click

124
00:06:35,580 --> 00:06:39,100
on the downloaded executable to start the installer.

125
00:06:39,100 --> 00:06:43,580
You might be prompted to enable WSL 2 Windows features,

126
00:06:43,580 --> 00:06:45,340
especially on Windows 10 Home

127
00:06:45,340 --> 00:06:48,010
and you should then check this.

128
00:06:48,010 --> 00:06:50,750
If you don't have this option you can also proceed

129
00:06:50,750 --> 00:06:54,620
without it though, if you're prompted to enable Hyper V

130
00:06:54,620 --> 00:06:56,580
then check this.

131
00:06:56,580 --> 00:07:00,230
So long story short whichever check boxes you see here

132
00:07:00,230 --> 00:07:02,300
just tick them of course,

133
00:07:02,300 --> 00:07:06,210
with the exception of the Add shortcuts to desktop checkbox

134
00:07:06,210 --> 00:07:09,260
that is up to you wherever you wanna do that.

135
00:07:09,260 --> 00:07:13,000
Then click OK, and this will now install Docker Desktop

136
00:07:13,000 --> 00:07:17,080
and therefore the Docker tool on your system.

137
00:07:17,080 --> 00:07:19,840
Now this again can take a while so let's wait

138
00:07:19,840 --> 00:07:22,180
for this installation to finish

139
00:07:23,320 --> 00:07:25,810
and eventually this should be done.

140
00:07:25,810 --> 00:07:28,690
Now once this is done you might be prompted to restart

141
00:07:28,690 --> 00:07:33,390
your system if you are, of course do so and thereafter,

142
00:07:33,390 --> 00:07:36,210
after your system restarted Docker might have

143
00:07:36,210 --> 00:07:38,030
started up automatically.

144
00:07:38,030 --> 00:07:41,200
Otherwise, simply execute Docker Desktop

145
00:07:41,200 --> 00:07:43,790
this tool which we just installed.

146
00:07:43,790 --> 00:07:47,240
Make sure you execute and started and once you do started

147
00:07:47,240 --> 00:07:51,320
you should see this prompt here or this screen here.

148
00:07:51,320 --> 00:07:55,800
You also should have that whale in your system tray here

149
00:07:55,800 --> 00:07:58,883
which proves that Docker is up and running.

150
00:07:59,980 --> 00:08:03,710
Here you can also always dive into the settings of Docker

151
00:08:03,710 --> 00:08:06,870
if you need to configure something though for the most part

152
00:08:06,870 --> 00:08:09,610
you shouldn't need to do too much here.

153
00:08:09,610 --> 00:08:13,090
However, you should ensure that Docker is always up

154
00:08:13,090 --> 00:08:15,610
and running if you plan on working with it,

155
00:08:15,610 --> 00:08:18,830
so if there is no whale down there you will not be able

156
00:08:18,830 --> 00:08:21,020
to execute Docker commands.

157
00:08:21,020 --> 00:08:23,890
So throughout this course ensure that Docker is up

158
00:08:23,890 --> 00:08:26,450
and running if you wanna work with it.

159
00:08:26,450 --> 00:08:30,800
Here in this graphical user interface you can click on this

160
00:08:30,800 --> 00:08:33,150
gear icon to be taken to the settings

161
00:08:33,150 --> 00:08:35,940
and here you can control whether Docker Desktop

162
00:08:35,940 --> 00:08:39,010
should start up when your system starts or not.

163
00:08:39,010 --> 00:08:41,809
But for convenience you might wanna leave this turned on,

164
00:08:41,809 --> 00:08:44,010
but it's of course up to you.

165
00:08:44,010 --> 00:08:47,720
You also might have the option to choose whether WSL 2

166
00:08:47,720 --> 00:08:51,180
should be used on Windows 10 Home you should do that

167
00:08:51,180 --> 00:08:53,780
on Windows 10 Pro you can do it,

168
00:08:53,780 --> 00:08:56,400
as you see it provides a better performance

169
00:08:56,400 --> 00:08:59,800
but you can also use just this Hyper V tool

170
00:08:59,800 --> 00:09:01,460
which we enabled.

171
00:09:01,460 --> 00:09:04,330
Now you don't need to do too much about the average settings

172
00:09:04,330 --> 00:09:06,900
you see here you can ignore them for now,

173
00:09:06,900 --> 00:09:09,693
I will come back to them if we should need them

174
00:09:09,693 --> 00:09:12,210
throughout this course.

175
00:09:12,210 --> 00:09:14,190
And with that we got Docker installed

176
00:09:14,190 --> 00:09:15,780
and we're ready to use it,

177
00:09:15,780 --> 00:09:19,510
you can now open up your regular command prompt,

178
00:09:19,510 --> 00:09:22,480
you don't need to run it as administrator.

179
00:09:22,480 --> 00:09:26,080
And there you should be able to enter Docker like this

180
00:09:26,080 --> 00:09:28,490
and you should not get an error

181
00:09:28,490 --> 00:09:31,020
but instead a list of commands you could use

182
00:09:31,020 --> 00:09:34,730
and that proves that it works and that Docker was installed.

183
00:09:34,730 --> 00:09:38,190
And we're soon going to use it for a more useful command

184
00:09:38,190 --> 00:09:40,270
than just this dummy command

185
00:09:40,270 --> 00:09:41,920
but that's now the setup we need.

