From the course: Learning Docker
Unlock the full course today
Join today to access over 24,000 courses taught by industry experts.
Solution: Starting NGINX - Docker Tutorial
From the course: Learning Docker
Solution: Starting NGINX
(cheerful synth music) (music ends) - [Instructor] Thanks for trying this challenge. I hope that you enjoyed it. The challenge was to serve a website on engine X with Docker, given some configuration and the static site. Let's work through the solution together. The first piece of information that we're given, is to use the Engine X image from Docker hub. This makes our problem much easier to solve, because we do not need to create a new Docker file for this website. Next, we were told to name our container "website". We know that we will want to use "Docker run" if we're going the short way, or "Docker container create" and "Docker container start" if we're going the long way. I prefer to use the short way, so I'm going to erase this and use "Docker Run" instead. Since the container will have a name, we know that we will want to use the dash dash name option. The next thing we know is that we need to configure our…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Exploring the Docker CLI3m 1s
-
(Locked)
Create a Docker container6m 58s
-
(Locked)
Create a Docker container: The short way2m 9s
-
(Locked)
Create a Docker container from Dockerfiles, part 12m 46s
-
(Locked)
Create a Docker container from Dockerfiles, part 22m 37s
-
(Locked)
Interact with your container5m 9s
-
(Locked)
Stopping and removing the container5m 41s
-
(Locked)
Binding ports to your container4m 36s
-
(Locked)
Saving data from containers5m 39s
-
(Locked)
Introducing the Docker Hub1m 23s
-
(Locked)
Pushing images to the Docker registry3m 13s
-
(Locked)
Checking your images in Docker Hub2m 44s
-
(Locked)
Challenge: Starting NGINX1m 16s
-
(Locked)
Solution: Starting NGINX5m 18s
-
-
-
-