1 00:00:00,790 --> 00:00:05,560 Starting this section and the next couple we're gonna start to look at the docker client or Docker Seelye 2 00:00:05,590 --> 00:00:09,520 inside of our terminal a little bit more and learn about some of the very basic commands so we used 3 00:00:09,520 --> 00:00:12,970 to interact with docker containers and images now. 4 00:00:13,000 --> 00:00:16,630 Fair warning here some of these sections are gonna be a little bit boring because we're essentially 5 00:00:16,630 --> 00:00:21,160 just gonna be typing in commands and looking at the output that comes but I'm going to do my best to 6 00:00:21,160 --> 00:00:24,850 make sure to share a lot of interesting information with you along the way. 7 00:00:24,850 --> 00:00:25,950 So let's get to it. 8 00:00:25,990 --> 00:00:29,280 The first command that we're gonna look at is one that we ran very briefly before. 9 00:00:29,330 --> 00:00:36,410 It is a command that we're going to use to run or submit to create and run a container using an image. 10 00:00:36,450 --> 00:00:41,920 So at the command line we're going to execute Docker run and then the name of the image that we want 11 00:00:41,920 --> 00:00:44,500 to use as the basis for this container. 12 00:00:44,500 --> 00:00:49,540 Now we've already gone through this process once before at the command line we ran Docker run Hello 13 00:00:49,600 --> 00:00:56,080 dash world and then we saw that message appear on the screen now using the knowledge that you now have 14 00:00:56,170 --> 00:00:58,670 about what a docker container really is. 15 00:00:58,690 --> 00:01:02,960 I want you to think about what probably just occurred when we ran that command. 16 00:01:03,040 --> 00:01:10,180 Chances are that somewhere on our hard disk is an image that has that file system snapshot with one 17 00:01:10,240 --> 00:01:14,800 single program inside of it maybe that thing is called I don't know hello world who knows what it's 18 00:01:14,800 --> 00:01:15,410 really called. 19 00:01:16,450 --> 00:01:23,040 So when we executed Docker run hello world we took that little snapshot of the hard drive. 20 00:01:23,260 --> 00:01:29,020 We stuck it into this little container thing or this kind of grouping of resources and then we executed 21 00:01:29,020 --> 00:01:29,960 the command. 22 00:01:30,050 --> 00:01:31,330 RON Hello worlds. 23 00:01:31,390 --> 00:01:37,260 And so the running process up here was Hello worlds that thing ran and then eventually exited. 24 00:01:37,300 --> 00:01:41,040 So that's what is happening behind the scenes when you execute that command. 25 00:01:41,050 --> 00:01:42,970 Now there's a lot of variations on this. 26 00:01:42,970 --> 00:01:46,360 A docker run command and a lot of very small subtleties around it. 27 00:01:46,360 --> 00:01:47,620 So let's take a quick pause. 28 00:01:47,620 --> 00:01:49,020 We're gonna come back the next section. 29 00:01:49,030 --> 00:01:52,840 We're gonna start looking at some of the interesting features around the run command so I'll see you 30 00:01:52,840 --> 00:01:53,520 in just a minute.