# Container Entrypoint

**URL:** <https://community.seqera.io/t/container-entrypoint/2774>\
**Category:** Ask for help\
**Tags:** nextflow\
**Created:** [October 6, 2026, 11:10am UTC](https://community.seqera.io/t/container-entrypoint/2774 "2026-10-06T11:10:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_H](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/sam_h/32/2603_2.png) [@Sam\_H](https://community.seqera.io/u/Sam_H)\
**Post date:** [October 6, 2026, 11:10am UTC](https://community.seqera.io/t/container-entrypoint/2774/1 "2026-10-06T11:10:37Z")

</div>

Hi everybody,

I’m trying to build a Nextflow workflow using podman containers. The [docs](https://docs.seqera.io/nextflow/container) state:

> Bash must be available at `/bin/bash` and must be the container entrypoint.

However, it seems the opposite is true: A container must not have bash specified as entrypoint. Indeed, looking at the `.command.run` script in the work directory, it calls whatever is inside the container with `/bin/bash -ue [...]/.command.sh`, therefore using a container image with bash specified as entrypoint yields the error

> /bin/bash: /bin/bash: cannot execute binary file

As it tries two run the bash as binary in itself.

To confirm I tried running a single echo-command workflow in both a clean debian (bash as default shell) and a clean alpine (bash not default, but installed) container. In both cases it worked when no entrypoint was specified and failed with the aforementioned error when it was.

Is there something I’m missing or are the docs actually faulty here?

Best  
Sam

---

<div class="post-metadata">

**Author:** ![mribeirodantas](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/mribeirodantas/32/235_2.png) [@mribeirodantas](https://community.seqera.io/u/mribeirodantas)\
**Post date:** [November 11, 2026, 4:51pm UTC](https://community.seqera.io/t/container-entrypoint/2774/2 "2026-11-11T16:51:38Z")

</div>

Hi @Sam_H,

Thanks for raising this. Based on what I checked here, you’re right and I’ll talk to the documentation team to update this.
