Skip to content
masterclass Buddy

Docker · Directive

ENTRYPOINT

ENTRYPOINT sets the executable that starts when a container runs. The exec form accepts runtime arguments and works with CMD for default arguments.

Last updated

Syntax

ENTRYPOINT ["executable", "param1", "param2"]
ENTRYPOINT command param1 param2

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • CMD
  • RUN
  • SHELL
  • docker run --entrypoint

Source: Dockerfile reference. Checked 2026-11-03.