# Dockerfile CMD & ENTRYPOINT error

**URL:** <https://forums.docker.com/t/dockerfile-cmd-entrypoint-error/4628>\
**Category:** General\
**Created:** [November 24, 2015, 3:16pm UTC](https://forums.docker.com/t/dockerfile-cmd-entrypoint-error/4628 "2015-11-24T15:16:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kleviat](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kleviat](https://forums.docker.com/u/kleviat)\
**Post date:** [November 24, 2015, 3:16pm UTC](https://forums.docker.com/t/dockerfile-cmd-entrypoint-error/4628/1 "2015-11-24T15:16:20Z")

</div>

Hi, i’m trying to build a pentaho’s container, PDI carte specifically. I have a problem with the execution of the [carte.sh](http://carte.sh) command from pdi. I’m using CMD + ENTRYPOINT to do that. My Dockerfile is something like this

* * *

FROM java

ADD pdi.zip /  
RUN unzip -q pdi / && rm pdi.zip

CMD [“0.0.0.0 8080”]  
ENTRYPOINT /data-integration/carte.sh

* * *

The CMD and ENTRYPOINT statements are combined into a single sentence before execution, where cmd are entrypoint’s statement parameters.

The image was built correctly but when i try to instanciate an conteiner with this image, it show me the following error:

/data-integration is not a comand

thanks for your help and sorry for my bad english

---

<div class="post-metadata">

**Author:** ![djukevanhoof](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@djukevanhoof](https://forums.docker.com/u/djukevanhoof)\
**Post date:** [November 24, 2015, 4:52pm UTC](https://forums.docker.com/t/dockerfile-cmd-entrypoint-error/4628/2 "2015-11-24T16:52:31Z")

</div>

When defining a CMD statement using an array then each param should be a separate item in the array like this:  
CMD [“0.0.0.0”, “8080”]

The same goes for the ENTRYPOINT statement, so that should be like:  
ENTRYPOINT ["/data-integration/carte.sh"]

Take a look at the documentation about using CMD [http://docs.docker.com/engine/reference/builder/](http://docs.docker.com/engine/reference/builder/)

---

<div class="post-metadata">

**Author:** ![kleviat](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kleviat](https://forums.docker.com/u/kleviat)\
**Post date:** [November 25, 2015, 2:25am UTC](https://forums.docker.com/t/dockerfile-cmd-entrypoint-error/4628/3 "2015-11-25T02:25:20Z")

</div>

Thanks!!! I read the documentation and made corrections in the Dockerfile. Now the container it’s working properly
