1
00:00:04,059 --> 00:00:04,930
Hi, guys.

2
00:00:04,930 --> 00:00:10,360
In this video I want to explain you how to install Docker on Linux like system.

3
00:00:10,360 --> 00:00:18,250
I'll tell you which Linux like systems are supported and how to get Docker up and running on such OS.

4
00:00:18,370 --> 00:00:25,360
Please notice that Linux like system is basically native operating system for Docker and that's why

5
00:00:25,360 --> 00:00:31,900
there is no need to create a separate virtual machine where containers will be running as it is done

6
00:00:31,900 --> 00:00:39,130
for macOS and for Windows on Linux like systems, containers will be created directly without any intermediate

7
00:00:39,130 --> 00:00:40,240
virtual machines.

8
00:00:40,690 --> 00:00:42,490
Okay, let's get right into it.

9
00:00:42,490 --> 00:00:50,920
And here in this example I have Ubuntu operating system version bionic 1804 and now let's open up Google

10
00:00:50,920 --> 00:00:55,120
Chrome and here let's type install docker.

11
00:00:56,590 --> 00:00:58,210
And click on first link.

12
00:00:58,210 --> 00:00:59,170
Install Docker.

13
00:00:59,200 --> 00:01:00,850
Docker Documentation.

14
00:01:01,180 --> 00:01:05,379
You'll see on this page different options of installation of Docker.

15
00:01:05,379 --> 00:01:12,430
And as I have noted before on macOS and on Windows, you need to install Docker desktop that will basically

16
00:01:12,430 --> 00:01:15,250
create virtual machine Linux virtual machine.

17
00:01:15,250 --> 00:01:18,820
And inside of that virtual machine you will run containers.

18
00:01:18,820 --> 00:01:27,460
But if you run Linux like system, then you'll install Docker directly on your computer and create containers

19
00:01:27,460 --> 00:01:28,540
directly on it.

20
00:01:28,570 --> 00:01:31,450
Let's choose this option Docker for Linux.

21
00:01:31,450 --> 00:01:35,100
And here on this page you will see description of Docker engine.

22
00:01:35,110 --> 00:01:41,920
Here is list of supported platforms and you'll see that for macOS and for Windows you need to install

23
00:01:41,920 --> 00:01:47,410
Docker desktop and inside of it, basically Docker engine will be running, but if you scroll a bit

24
00:01:47,410 --> 00:01:54,520
down, you'll see list of server operating systems like CentOS, Debian or Ubuntu that are Linux like

25
00:01:54,520 --> 00:02:00,440
systems that could be used for direct installation of Docker engine.

26
00:02:00,920 --> 00:02:08,660
If you'll go to installation per distro, you'll see different options like install on CentOS, install

27
00:02:08,660 --> 00:02:11,480
on Debian, install on ubuntu and so on.

28
00:02:11,510 --> 00:02:13,040
I'm running now ubuntu.

29
00:02:13,070 --> 00:02:20,360
That's why I'll click on this option install on ubuntu and on this page I'll see which ubuntu versions

30
00:02:20,360 --> 00:02:22,160
are currently supported.

31
00:02:22,190 --> 00:02:27,390
There are three of them ubuntu on ubuntu bionic and ubuntu xenial.

32
00:02:27,410 --> 00:02:33,260
Now let me demonstrate you how you are able to verify which operating system you are currently running

33
00:02:33,260 --> 00:02:34,230
on your computer.

34
00:02:34,250 --> 00:02:40,670
Let me go to terminal and here first, let's check version of operating system.

35
00:02:40,910 --> 00:02:44,720
Cut it htc slash os release.

36
00:02:44,780 --> 00:02:51,050
You could use tab in order to auto complete command and I'll see that I'm currently running ubuntu version

37
00:02:51,050 --> 00:02:53,990
is 1804 bionic beaver.

38
00:02:54,080 --> 00:03:03,380
Also, I'm able to check version like so lsb underscore release dash x and I'll see bionic.

39
00:03:03,410 --> 00:03:06,960
Also, you could verify your processor architecture.

40
00:03:06,980 --> 00:03:08,360
Let me enter here.

41
00:03:08,360 --> 00:03:16,820
Command uname dash m and I'll see that architecture in my case is x86 underscore 64.

42
00:03:16,880 --> 00:03:18,380
Why is that important?

43
00:03:18,410 --> 00:03:25,250
Here on this page you'll see that depending on different architectures, you need to enter different

44
00:03:25,250 --> 00:03:28,370
commands here on this step on this one.

45
00:03:28,370 --> 00:03:34,130
And by default architecture x86 underscore 64 is selected and command is here.

46
00:03:34,130 --> 00:03:37,960
And basically that's architecture that I'm using right now.

47
00:03:37,970 --> 00:03:38,660
Great.

48
00:03:38,660 --> 00:03:45,860
Let's now start from the very beginning of this document and install Docker directly on Ubuntu operating

49
00:03:45,860 --> 00:03:46,520
system.

50
00:03:46,520 --> 00:03:52,340
Let's now start from the very beginning from this step number one with setting up repository.

51
00:03:52,340 --> 00:03:56,510
Let me copy this command that will actually update information about packages.

52
00:03:56,510 --> 00:03:57,620
Let me copy it.

53
00:03:57,620 --> 00:04:03,860
Go to terminal, let me clear it and paste command like so enter.

54
00:04:03,890 --> 00:04:05,840
Let me enter my password.

55
00:04:07,180 --> 00:04:08,340
It will take some time.

56
00:04:08,350 --> 00:04:09,310
Let's wait a bit.

57
00:04:10,190 --> 00:04:15,620
Let me meanwhile copy your next command that will install some packages.

58
00:04:15,890 --> 00:04:21,649
Let me copy the entire command like so notice that this command is splitted into different lines using

59
00:04:21,649 --> 00:04:23,810
backslashes for better readability.

60
00:04:23,840 --> 00:04:25,370
Let me copy it.

61
00:04:26,420 --> 00:04:27,920
Go to terminal.

62
00:04:28,830 --> 00:04:30,570
It was already updated.

63
00:04:30,570 --> 00:04:33,960
Let me clear terminal paste command.

64
00:04:34,520 --> 00:04:35,270
Enter.

65
00:04:35,600 --> 00:04:38,720
Some of those packages were already present on this computer.

66
00:04:38,750 --> 00:04:44,510
That's why there was no need to install, for example, Corel or CA certificates.

67
00:04:44,540 --> 00:04:46,340
Okay, let's move on to next step.

68
00:04:46,340 --> 00:04:48,170
Let me scroll a bit down.

69
00:04:48,170 --> 00:04:52,460
Let me add official GPG key of Docker.

70
00:04:52,940 --> 00:04:53,480
Copy this.

71
00:04:53,480 --> 00:04:55,310
Command go to terminal.

72
00:04:56,010 --> 00:04:56,730
Based.

73
00:04:59,080 --> 00:05:00,310
Key was added.

74
00:05:00,310 --> 00:05:02,680
And here you are able to verify.

75
00:05:02,710 --> 00:05:03,640
Fingerprint.

76
00:05:03,670 --> 00:05:06,280
Let me copy this command.

77
00:05:07,580 --> 00:05:13,250
With this check, you are able to verify that you will download packages from Docker.com, not from

78
00:05:13,250 --> 00:05:18,560
any other malicious server that has spoofed docker.com IP address or hostname.

79
00:05:18,590 --> 00:05:25,400
Okay, let me enter this command and you'll see here fingerprints and you could compare them with those

80
00:05:25,400 --> 00:05:27,440
mentioned here on this page.

81
00:05:27,440 --> 00:05:32,690
And for example, if I'll compare this line, it will be same as in terminal in my case.

82
00:05:32,690 --> 00:05:35,150
So it ends with CD 88.

83
00:05:35,180 --> 00:05:35,830
Great.

84
00:05:35,840 --> 00:05:37,490
Let's move on to next step.

85
00:05:37,490 --> 00:05:41,630
And next you'll see instructions how to install stable repository.

86
00:05:41,660 --> 00:05:46,340
You're also able to install so-called nightly or test repositories.

87
00:05:46,340 --> 00:05:51,950
And if you want to install them, you could read how to do that here and learn about those repositories

88
00:05:51,950 --> 00:05:52,760
in details.

89
00:05:52,760 --> 00:05:54,590
By going to this link.

90
00:05:54,590 --> 00:06:01,370
Let me scroll a bit down and here again, as I have shown you before, I'm using this architecture x86

91
00:06:01,370 --> 00:06:08,700
64 and now let me copy this command go to terminal back and here paste it.

92
00:06:10,980 --> 00:06:13,110
It will download the some packages.

93
00:06:13,590 --> 00:06:15,870
Let's wait until it will be completed.

94
00:06:15,930 --> 00:06:16,290
Okay.

95
00:06:16,320 --> 00:06:18,240
All necessary files were downloaded.

96
00:06:18,240 --> 00:06:22,480
Let's move on next and let's now install finally Docker engine.

97
00:06:22,500 --> 00:06:25,370
You could again update APT packages.

98
00:06:25,380 --> 00:06:28,290
Let me copy this command and paste here.

99
00:06:31,030 --> 00:06:37,540
And let me copy the next command that will basically install Docker Community Engine and Docker CLI.

100
00:06:37,750 --> 00:06:39,820
Let me copy this command.

101
00:06:39,850 --> 00:06:42,640
Go to terminal and paste it here.

102
00:06:45,030 --> 00:06:46,490
Yes, I want to continue.

103
00:06:46,800 --> 00:06:51,960
Notice that this installation will take around 400MB of disk space.

104
00:06:52,080 --> 00:06:56,790
It is actually much lower than the installation package for Windows or macOS.

105
00:06:57,450 --> 00:06:59,340
Okay, let me scroll down a bit.

106
00:06:59,340 --> 00:07:05,220
And here below on the step number two, you are able to see how to install a specific version of Docker

107
00:07:05,220 --> 00:07:06,840
engine if you want to do so.

108
00:07:06,870 --> 00:07:10,230
Now we should have Docker installed on this computer.

109
00:07:10,230 --> 00:07:15,000
Let me clear terminal and enter command Docker Dash dash help.

110
00:07:15,180 --> 00:07:21,570
It will list all commands available to use along with Docker and will see such commands as the Docker

111
00:07:21,570 --> 00:07:22,170
version.

112
00:07:22,200 --> 00:07:23,370
Docker Start.

113
00:07:23,370 --> 00:07:28,950
And if I'll scroll up, you will see some additional management commands like Docker Container, Docker

114
00:07:28,950 --> 00:07:30,210
Engine and so on.

115
00:07:30,210 --> 00:07:36,030
That means that Docker was successfully installed on this computer and it is ready to use.

116
00:07:36,060 --> 00:07:36,900
Let's proceed.

117
00:07:36,900 --> 00:07:43,140
And next we will try to create very first Docker container using basic Hello world image.

118
00:07:43,170 --> 00:07:43,890
See you next.

119
00:07:43,890 --> 00:07:44,520
Bye bye.

