From the course: Learning Docker
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
Create a Docker container - Docker Tutorial
From the course: Learning Docker
Create a Docker container
- [Instructor] Creating a Docker container is easy. Let me show you how. There are two ways to create Docker containers, the long way and the short way. We're going to go the long way first, so that we can better appreciate how much the short way simplifies things. Containers are created from container images. Container images are a compressed and pre-packaged file system that contain, no pun intended, your app along with its environment and configuration with an instruction on how to start your application. That instruction is called the entry point. First, we'll need to tell Docker to create a container from an image. If an image does not exist on your computer, Docker will try to retrieve it from a container image registry. By default, Docker always tries to pull from Docker Hub. We will use the Docker container create command to do this. Let's see its help page by running Docker container create dash dash help.…
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
-
-
-
-