Entrypoint type in docker driver

Why is entrypoint defined as a string list []string{} in nomad as opposed to string in docker?

  • entrypoint - (Optional) A string list overriding the image’s entrypoint.

Entrypoint defines the point of entry to the docker container (e.g. a default binary that needs to be executed when the container starts). Any arguments should not be part of the entrypoint.

From Dockerfile’s official document https://docs.docker.com/engine/reference/builder/#entrypoint we see the entrypoint is defined as a list. The entrypoint in the official example has parameters too.

1 Like