1
00:00:00,290 --> 00:00:03,080
So let's start with installing Docker.

2
00:00:03,080 --> 00:00:06,820
For this here in your connected terminal

3
00:00:06,820 --> 00:00:09,670
where we are running commands on the remote machine,

4
00:00:09,670 --> 00:00:14,223
start with sudo yum update dash y.

5
00:00:16,180 --> 00:00:17,400
This will simply ensure that

6
00:00:17,400 --> 00:00:20,320
all essential packages on that remote machine

7
00:00:20,320 --> 00:00:24,010
are updated and are using their latest version.

8
00:00:24,010 --> 00:00:25,223
Then after,

9
00:00:26,130 --> 00:00:31,130
run sudo amozon dash linux dash extras,

10
00:00:32,890 --> 00:00:35,010
install Docker.

11
00:00:35,010 --> 00:00:37,900
Now that's why we should pick this Amazon image

12
00:00:37,900 --> 00:00:39,150
when we create it.

13
00:00:39,150 --> 00:00:40,870
The "ec2" instance.

14
00:00:40,870 --> 00:00:44,380
On these Amazon based virtual instances

15
00:00:44,380 --> 00:00:46,920
we have this command available

16
00:00:46,920 --> 00:00:49,040
which makes installing extra software

17
00:00:49,040 --> 00:00:51,010
like Docker, super easy.

18
00:00:51,010 --> 00:00:54,660
And this will now install Docker on that remote machine.

19
00:00:54,660 --> 00:00:56,770
We installed it on our local machine

20
00:00:56,770 --> 00:01:00,080
in the first core section, but that won't help us

21
00:01:00,080 --> 00:01:02,900
if we want to run a container on the remote machine.

22
00:01:02,900 --> 00:01:05,860
That's why we need to install Docker there as well.

23
00:01:05,860 --> 00:01:07,770
And that's what this command does.

24
00:01:07,770 --> 00:01:09,320
It installs Docker

25
00:01:09,320 --> 00:01:12,313
on this remote machine which is running in the cloud.

26
00:01:13,570 --> 00:01:15,710
Let's confirm this with y.

27
00:01:15,710 --> 00:01:18,400
And now it installs all the required tools

28
00:01:18,400 --> 00:01:22,023
and Docker itself, which are needed to run Docker there.

29
00:01:23,200 --> 00:01:25,343
So let's wait for this to finish.

30
00:01:26,460 --> 00:01:28,260
And with this finished,

31
00:01:28,260 --> 00:01:33,170
we can run sudo service docker start

32
00:01:33,170 --> 00:01:35,570
to start Docker there.

33
00:01:35,570 --> 00:01:38,350
And then after once Docker is started,

34
00:01:38,350 --> 00:01:42,830
we are able to run these Docker commands like docker run.

35
00:01:42,830 --> 00:01:44,110
If I now hit enter

36
00:01:44,110 --> 00:01:47,380
you see it complains that it needs at least one argument

37
00:01:47,380 --> 00:01:51,200
but it does not complain that it wouldn't know Docker.

38
00:01:51,200 --> 00:01:54,353
So that proves that Docker is now available here.

