# Entrypoint script not executed with docker image

**URL:** <https://discuss.circleci.com/t/entrypoint-script-not-executed-with-docker-image/14896>\
**Category:** Build Environment\
**Tags:** docker\
**Created:** [July 28, 2017, 1:52pm UTC](https://discuss.circleci.com/t/entrypoint-script-not-executed-with-docker-image/14896 "2017-07-28T13:52:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![l1990790120](https://avatars.discourse-cdn.com/v4/letter/l/3d9bf3/32.png) [@l1990790120](https://discuss.circleci.com/u/l1990790120)\
**Post date:** [July 28, 2017, 1:52pm UTC](https://discuss.circleci.com/t/entrypoint-script-not-executed-with-docker-image/14896/1 "2017-07-28T13:52:37Z")

</div>

I have built a docker image myself, when running docker image locally, things seem to be working fine, but circleci doesn’t seem to pick it up.

I have set my executor to docker

```auto
docker:
      - image: some image

```

the image’s entrypoint is starting a bunch of services. While on circle ci, I do have everything I installed on docker, but the services that’s supposed to be started by entrypoint doesn’t seem to be running.

I also tried specifying entrypoint, still doesn’t seem to be working

```auto
docker:
      - image: some entry point
        entrypoint: /docker-start.sh

```

I was wondering, how can I enforce those services running when executing test command? What exactly does circleci do when executing with docker image.

Thanks!

---

<div class="post-metadata">

**Author:** ![l1990790120](https://avatars.discourse-cdn.com/v4/letter/l/3d9bf3/32.png) [@l1990790120](https://discuss.circleci.com/u/l1990790120)\
**Post date:** [July 28, 2017, 1:56pm UTC](https://discuss.circleci.com/t/entrypoint-script-not-executed-with-docker-image/14896/2 "2017-07-28T13:56:11Z")

</div>

It seems to be working now after adding that entrypoint. Now things are running. Still wasn’t clear if I need to specify entrypoint myself. Also, like if it’s executing inside the docker image or outside.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:39am UTC](https://discuss.circleci.com/t/entrypoint-script-not-executed-with-docker-image/14896/3 "2018-06-18T11:39:45Z")

</div>

Closed on June 18, 2018, 11:39am UTC


