Start Apps Using Container
Learn about starting an app in a Docker container using Entrypoint, Cmd instructions, or CLI arguments.
In the previous lesson section, 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:
- An
Entrypoint
instruction in the image - A
Cmd
instruction in the image - A CLI argument
Get hands-on with 1200+ tech skills courses.