1
00:00:02,040 --> 00:00:04,520
Now Docker Desktop is the recommended way

2
00:00:04,520 --> 00:00:08,730
of running Docker on macOS and Windows,

3
00:00:08,730 --> 00:00:11,920
but it's not a available on every system.

4
00:00:11,920 --> 00:00:15,120
If you go to the Developer Docs part here

5
00:00:15,120 --> 00:00:17,200
on the Docker page.

6
00:00:17,200 --> 00:00:20,690
So if you visit docs.docker.com

7
00:00:20,690 --> 00:00:23,130
you can click on Download and install.

8
00:00:23,130 --> 00:00:26,700
And there you see the requirements for using Docker Desktop,

9
00:00:26,700 --> 00:00:30,750
both for Windows as well as for Mac.

10
00:00:30,750 --> 00:00:33,640
Now the good thing is for macOS

11
00:00:33,640 --> 00:00:37,220
most systems support Docker Desktop.

12
00:00:37,220 --> 00:00:40,870
If you have Mac hardware newer than 2010

13
00:00:40,870 --> 00:00:45,143
and you fulfill all these requirements, you will be fine.

14
00:00:46,240 --> 00:00:48,660
For Docker desktop for Windows,

15
00:00:48,660 --> 00:00:50,950
you need Windows 10 essentially,

16
00:00:50,950 --> 00:00:54,070
as you saw in the last lecture as well.

17
00:00:54,070 --> 00:00:56,610
But if you don't fulfill these requirements

18
00:00:56,610 --> 00:01:00,190
there is an alternative available for you.

19
00:01:00,190 --> 00:01:03,060
There is a tool named Docker Toolbox

20
00:01:03,060 --> 00:01:07,810
which you can then use instead of Docker Desktop.

21
00:01:07,810 --> 00:01:10,320
If you google for docker toolbox

22
00:01:10,320 --> 00:01:15,160
you should find these Toolbox installation instructions.

23
00:01:15,160 --> 00:01:17,828
It's a legacy tool because it's not recommended

24
00:01:17,828 --> 00:01:19,670
that you use it anymore

25
00:01:19,670 --> 00:01:21,270
because it was replaced

26
00:01:21,270 --> 00:01:23,500
by Docker Desktop for Mac and Windows.

27
00:01:23,500 --> 00:01:27,050
Historically Docker Toolbox was the only solution

28
00:01:27,050 --> 00:01:28,490
for all platforms.

29
00:01:28,490 --> 00:01:32,570
Nowadays, we have to more modern Docker Desktop solution.

30
00:01:32,570 --> 00:01:35,470
But for older systems that's not available

31
00:01:35,470 --> 00:01:36,760
so therefore there

32
00:01:36,760 --> 00:01:39,810
you need to stick to Docker Toolbox.

33
00:01:39,810 --> 00:01:42,090
Now what is Docker Toolbox?

34
00:01:42,090 --> 00:01:45,640
The Docker tool runs natively on Linux

35
00:01:45,640 --> 00:01:48,540
and to make it work on macOS or Windows

36
00:01:48,540 --> 00:01:51,450
you in the end need a virtual machine.

37
00:01:51,450 --> 00:01:54,330
So a machine simulated on your machine

38
00:01:54,330 --> 00:01:58,760
which holds a Linux installation in which Docker can run.

39
00:01:58,760 --> 00:02:01,770
Now Docker Desktop for both Mac and Windows

40
00:02:01,770 --> 00:02:05,190
uses built-in operating system features for that.

41
00:02:05,190 --> 00:02:08,270
But older versions don't have these features.

42
00:02:08,270 --> 00:02:09,320
That's why you then need

43
00:02:09,320 --> 00:02:11,740
to install a virtual machine manually

44
00:02:11,740 --> 00:02:14,270
and install Docker inside of that machine.

45
00:02:14,270 --> 00:02:17,760
And that's in the end what Docker Toolbox helps you with.

46
00:02:17,760 --> 00:02:21,440
So, how do you use Docker Toolbox then?

47
00:02:21,440 --> 00:02:23,450
Well, first of all, you might want to verify

48
00:02:23,450 --> 00:02:26,110
that you really can't use Docker Desktop

49
00:02:26,110 --> 00:02:28,650
but if you are at this point that you can't use it

50
00:02:28,650 --> 00:02:31,410
you can follow the instructions on this page.

51
00:02:31,410 --> 00:02:33,320
And on this page, you, for example,

52
00:02:33,320 --> 00:02:36,960
can find out how to check whether your system supports

53
00:02:36,960 --> 00:02:39,020
the virtualization which is needed.

54
00:02:39,020 --> 00:02:42,110
For example, how to check it on Windows 8.

55
00:02:42,110 --> 00:02:44,950
If you don't fulfill the requirements listed here,

56
00:02:44,950 --> 00:02:48,800
you unfortunately can't use Docker on your system

57
00:02:48,800 --> 00:02:51,763
because you will not be able to install Docker Toolbox.

58
00:02:51,763 --> 00:02:55,870
And that is the last possible way of getting Docker to run.

59
00:02:55,870 --> 00:02:58,780
So make sure you check these requirements on Windows 8.

60
00:02:58,780 --> 00:03:02,690
For Windows 7, make sure you use a tool like Speccy

61
00:03:02,690 --> 00:03:06,770
or the Hardware-Assisted Virtualization Detection Tool.

62
00:03:06,770 --> 00:03:10,910
And once you know that you are able to run a virtual machine

63
00:03:10,910 --> 00:03:13,890
you can install Docker Toolbox.

64
00:03:13,890 --> 00:03:18,490
On macOS, by the way, check the Install Toolbox on Mac here

65
00:03:18,490 --> 00:03:21,090
to find all the installation steps there

66
00:03:21,090 --> 00:03:21,980
though in general,

67
00:03:21,980 --> 00:03:24,730
these are the same steps as shown on Windows.

68
00:03:24,730 --> 00:03:26,740
So I will show it on Windows here,

69
00:03:26,740 --> 00:03:29,110
but this would be your macOS steps

70
00:03:29,110 --> 00:03:32,500
if you need to install Docker Toolbox on macOS,

71
00:03:32,500 --> 00:03:34,863
because you can't use Docker Desktop.

72
00:03:35,930 --> 00:03:37,640
Now, how does this work?

73
00:03:37,640 --> 00:03:41,620
First of all, you need to go to the Toolbox Releases page

74
00:03:41,620 --> 00:03:44,280
and download the latest version there

75
00:03:44,280 --> 00:03:47,790
and simply download the executable for Windows

76
00:03:47,790 --> 00:03:50,363
and the package file for macOS.

77
00:03:51,950 --> 00:03:55,240
So here I'll go with the executable for Windows

78
00:03:55,240 --> 00:03:58,300
and this will now install everything you need to install

79
00:03:58,300 --> 00:04:02,270
to get Docker to run on your older Windows machine

80
00:04:02,270 --> 00:04:05,120
or on your older macOS machine.

81
00:04:05,120 --> 00:04:08,080
You find detailed installation instructions on

82
00:04:08,080 --> 00:04:10,220
the page we just visited by the way.

83
00:04:10,220 --> 00:04:13,420
So definitely make sure you also check these steps here

84
00:04:13,420 --> 00:04:15,313
in case you should get stuck.

85
00:04:16,230 --> 00:04:18,660
So let's wait for this download to complete.

86
00:04:18,660 --> 00:04:22,150
And once it did complete, we can execute this installer

87
00:04:22,150 --> 00:04:24,000
which we downloaded.

88
00:04:24,000 --> 00:04:27,690
In that installer, simply walk through the different steps

89
00:04:27,690 --> 00:04:31,790
and pick a location where that should be installed

90
00:04:31,790 --> 00:04:33,630
on your system.

91
00:04:33,630 --> 00:04:35,280
Click Next

92
00:04:35,280 --> 00:04:38,730
and then make sure you have all these things checked.

93
00:04:38,730 --> 00:04:42,040
Docker Toolbox needs VirtualBox for example,

94
00:04:42,040 --> 00:04:44,420
which is a tool that creates a virtual machine

95
00:04:44,420 --> 00:04:45,800
on your system.

96
00:04:45,800 --> 00:04:47,140
And you should also ensure

97
00:04:47,140 --> 00:04:49,853
that all the other tools here are being installed.

98
00:04:51,040 --> 00:04:52,550
So click Next, then

99
00:04:53,450 --> 00:04:56,680
you can decide whether you want the desktop shortcut or not.

100
00:04:56,680 --> 00:04:59,910
You should definitely keep the second option check though

101
00:04:59,910 --> 00:05:03,520
that Docker binaries are added to your path.

102
00:05:03,520 --> 00:05:06,980
And you can in general go with the default settings here.

103
00:05:06,980 --> 00:05:09,250
So let's click Next and Install.

104
00:05:09,250 --> 00:05:10,510
And this will now install

105
00:05:10,510 --> 00:05:12,820
and set up all the tools Docker needs

106
00:05:12,820 --> 00:05:14,670
to bring up that virtual machine

107
00:05:14,670 --> 00:05:16,963
in which Docker then is able to run.

108
00:05:19,090 --> 00:05:21,443
Now, eventually this will be installed.

109
00:05:22,330 --> 00:05:23,890
And you can then click Finish

110
00:05:23,890 --> 00:05:27,400
and it should open up this folder

111
00:05:27,400 --> 00:05:32,040
with some shortcuts you can use to basically start Docker.

112
00:05:32,040 --> 00:05:35,370
You can simply click the Docker Quickstart Terminal here

113
00:05:35,370 --> 00:05:37,880
and this will open up a terminal

114
00:05:37,880 --> 00:05:40,700
in which you then can run the Docker command.

115
00:05:41,860 --> 00:05:44,450
Now you see for me, I'm not able to start it

116
00:05:44,450 --> 00:05:47,900
because I have Hyper-V enabled on my machine

117
00:05:47,900 --> 00:05:51,530
and therefore I should not use Docker Toolbox.

118
00:05:51,530 --> 00:05:53,300
But if you can't use Hyper-V,

119
00:05:53,300 --> 00:05:55,820
if you can't use Docker Desktop therefore

120
00:05:55,820 --> 00:05:58,570
you should instead see something like this,

121
00:05:58,570 --> 00:06:00,130
and you will have an environment

122
00:06:00,130 --> 00:06:02,833
in which you can run Docker commands.

123
00:06:03,681 --> 00:06:06,400
So where you then for example, can run Docker

124
00:06:06,400 --> 00:06:08,420
to see a list of all commands

125
00:06:08,420 --> 00:06:10,860
or execute all the different Docker commands

126
00:06:10,860 --> 00:06:13,400
you will see throughout this course.

127
00:06:13,400 --> 00:06:14,540
And that is it.

128
00:06:14,540 --> 00:06:16,310
This is then your environment

129
00:06:16,310 --> 00:06:19,860
in which you can work to run Docker commands

130
00:06:19,860 --> 00:06:23,430
and to work with containers as shown throughout the course.

131
00:06:23,430 --> 00:06:25,760
What you'll learn about Docker will be the same

132
00:06:25,760 --> 00:06:27,970
as if you used Docker Desktop.

133
00:06:27,970 --> 00:06:30,130
So the concepts are all the same.

134
00:06:30,130 --> 00:06:32,300
It's really just the environment

135
00:06:32,300 --> 00:06:34,770
in which you run Docker, which is different.

136
00:06:34,770 --> 00:06:38,090
And as mentioned multiple times, if you get any chance

137
00:06:38,090 --> 00:06:41,750
of upgrading to Docker Desktop, definitely do that.

138
00:06:41,750 --> 00:06:43,570
It offers greater performance,

139
00:06:43,570 --> 00:06:45,880
doesn't clutter your system as much.

140
00:06:45,880 --> 00:06:48,450
And overall is the recommended environment

141
00:06:48,450 --> 00:06:49,773
for running Docker.

