# Entrypoint type in docker driver

**URL:** <https://discuss.hashicorp.com/t/entrypoint-type-in-docker-driver/7624>\
**Category:** Nomad\
**Created:** [April 14, 2020, 12:08am UTC](https://discuss.hashicorp.com/t/entrypoint-type-in-docker-driver/7624 "2020-04-14T00:08:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shishir-a412ed](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/shishir-a412ed/32/3957_2.png) [@shishir-a412ed](https://discuss.hashicorp.com/u/shishir-a412ed)\
**Post date:** [April 14, 2020, 12:08am UTC](https://discuss.hashicorp.com/t/entrypoint-type-in-docker-driver/7624/1 "2020-04-14T00:08:19Z")

</div>

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

- [`entrypoint`](https://nomadproject.io/docs/drivers/#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.

---

<div class="post-metadata">

**Author:** ![yingbo](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/yingbo/32/9900_2.png) [@yingbo](https://discuss.hashicorp.com/u/yingbo)\
**Post date:** [July 28, 2020, 4:52pm UTC](https://discuss.hashicorp.com/t/entrypoint-type-in-docker-driver/7624/2 "2020-07-28T16:52:58Z")

</div>

From Dockerfile’s official document [https://docs.docker.com/engine/reference/builder/#entrypoint](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.
