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

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.…

Contents