Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-entrypoint.sh": executable file not found in $PATH. #27182

Closed
ghost opened this issue Oct 6, 2016 · 8 comments
Closed

docker-entrypoint.sh": executable file not found in $PATH. #27182

ghost opened this issue Oct 6, 2016 · 8 comments

Comments

@ghost
Copy link

ghost commented Oct 6, 2016

Hi ,
i have build an Rabbitmq docker image using Dockerfile from official RabbitMQ but used ubuntu base instead of Debian base. i could able to build the image after solving some issues. while building i created the docker-entrypoint.sh as per official rabbitmq ,then used that file to copy in to Docker image while building .

1.Now i am getting the following error :
root@ubuntu-docker-xxxx-2:~/rabbitmq-ubuntu# docker run --name rabbbit-ubuntu -d -p 1883:1883 -p 15672:15672 dockeriot/rabbitmq:ubuntu1
d40b16253b44025ff18eb1668d93946e9eb26635d3dee67ece985bf4c1a1f82e
docker: Error response from daemon: oci runtime error: exec: "docker-entrypoint.sh": executable file not found in $PATH.

2. Not able to access URLs of gpg --keyserver ha.pool.sks-keyservers.net while building Docker image via Dockerfile: anyone facing this issue ?

@milindchawre
Copy link
Contributor

For point (1) : It seems that your docker-entrypoint.sh don't have proper permissions.
Try "RUN chmod +x docker-entrypoint.sh"

@ghost
Copy link
Author

ghost commented Oct 6, 2016

Hi @milindchawre , output :
Step 19 : COPY docker-entrypoint.sh /usr/local/bin/
---> Using cache
---> cb97f6baa77c
Step 20 : RUN chmod +x docker-entrypoint.sh
---> Running in 34214b205479
chmod: cannot access 'docker-entrypoint.sh': No such file or directory
The command '/bin/sh -c chmod +x docker-entrypoint.sh' returned a non-zero code: 1

@justincormack
Copy link
Contributor

You need to chmod +x /usr/local/bin/docker-entrypoint.sh

On 6 Oct 2016 10:48 a.m., "Raj kumar" notifications@github.com wrote:

Step 19 : COPY docker-entrypoint.sh /usr/local/bin/
---> Using cache
---> cb97f6baa77c
Step 20 : RUN chmod +x docker-entrypoint.sh
---> Running in 34214b205479
chmod: cannot access 'docker-entrypoint.sh': No such file or directory
The command '/bin/sh -c chmod +x docker-entrypoint.sh' returned a non-zero
code: 1


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#27182 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAdcPP5LuytnCx5rqw8bQgi49AMV_A05ks5qxLXcgaJpZM4KPnT3
.

@ghost
Copy link
Author

ghost commented Oct 6, 2016

thank you justin , i forgot to add the Path

@ghost
Copy link
Author

ghost commented Oct 6, 2016

thanks Guys , i could build the Docker image and tested successfully .

@ghost ghost closed this as completed Oct 6, 2016
robisenberg added a commit to robisenberg/docker-redis-image that referenced this issue Dec 7, 2017
Was getting an error when trying to run the image:

```
$ docker run --rm robisenberg/redis
container_linux.go:265: starting container process caused "exec: \"docker-entrypoint.sh\": executable file not found in $PATH"
docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused "exec: \"docker-entrypoint.sh\": executable file not found in $PATH".
```

The fix seemed to be to make the docker-entrypoint.sh executable.
See moby/moby#27182
@halegreen
Copy link

halegreen commented Mar 11, 2019

God, why execute docker-entrypoint.sh file in my working directory doesn't work?
after I move it to /usr/local/bin, and chmod, it works...

@josemiguel-diaz-external

Thanks!!

@nlimarenan
Copy link

THANKKKSSS! Same here

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants