Start Apps Using Container

Learn about starting an app in a Docker container using Entrypoint, Cmd instructions, or CLI arguments.

In the previous lesson, we created a container running a web app. But how did the container know which app to start and how to start it?

Different ways to start an app in a container

There are three ways we can tell Docker how to start an app in a container:

  1. An Entrypoint instruction in the image
  2. A Cmd instruction in the image
  3. A CLI argument

Get hands-on with 1400+ tech skills courses.