1 00:00:00,634 --> 00:00:03,367 We are going to make containerized official open 2 00:00:03,367 --> 00:00:07,567 source 2048 on our Docker host live. 3 00:00:07,567 --> 00:00:13,001 And to do so, the first step is, get the files. We will clone 4 00:00:13,001 --> 00:00:16,767 this Git repo on our home directory. If you don't 5 00:00:16,767 --> 00:00:20,367 have Git installed, please go through previous article. 6 00:00:20,367 --> 00:00:23,667 Once the repo is cloned, let's navigate 7 00:00:23,667 --> 00:00:26,967 into it and get the list of files. We have a bunch 8 00:00:26,967 --> 00:00:30,634 of files including index.html, which we will 9 00:00:30,634 --> 00:00:34,134 be using soon enough. Now run a container called 10 00:00:34,134 --> 00:00:38,834 2048 from nginx:latest image and use bind-mount 11 00:00:38,834 --> 00:00:42,901 to mount our clone 2048 directory to html 12 00:00:42,901 --> 00:00:46,734 directory of nginx image. In other words, we are 13 00:00:46,734 --> 00:00:50,034 replacing the index.html file and providing 14 00:00:50,034 --> 00:00:53,434 the necessary support for the new index.html. 15 00:00:53,834 --> 00:00:57,634 As always, we are exposing containers port 80 16 00:00:57,634 --> 00:01:03,434 to host's port 8080, the container is up and running. 17 00:01:03,634 --> 00:01:06,266 Now let's open a web browser and navigate to 18 00:01:06,266 --> 00:01:10,267 localhost port 8080, There we go, 19 00:01:10,501 --> 00:01:15,234 we have our favorite 2048 on our web browser and that too 20 00:01:15,367 --> 00:01:18,767 containerized. Let's see if it works properly. 21 00:01:18,767 --> 00:03:02,034 [Background Music] 22 00:03:02,034 --> 00:03:06,367 It does, and it was an awesome experience. 23 00:03:06,367 --> 00:03:08,867 Go ahead, try it yourself.