...

/

Start Apps Using Container

Start Apps Using Container

Learn how to start 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
Press + to interact

We’ll learn more about these in the next chapter, but the Entrypoint and Cmd instructions are ...

Access this course and 1400+ top-rated courses and projects.