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 on docker-compose up #51

Closed
nickharris-dev opened this issue Jan 10, 2019 · 1 comment
Closed

Comments

@nickharris-dev
Copy link

nickharris-dev commented Jan 10, 2019

Hi,

Thanks for providing these docker-good-defaults 👍
I'm having an issue on docker-compose up though, getting the error:

ERROR: for node  Cannot start service node: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"docker-entrypoint.sh\": executable file not found in $PATH": unknown

docker-entrypoint.sh sits in the root of my project, I've not modified it from your example, nor the part of Dockerfile that refers to it;

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]

Any ideas?

@nickharris-dev nickharris-dev changed the title docker-entrypoint.sh executable file not found on docker-compose up --build docker-entrypoint.sh executable file not found on docker-compose up Jan 10, 2019
@nickharris-dev
Copy link
Author

ahha, I fixed it… problem was I didn't clone this repo; just added the file contents to my own project, so docker-entrypoint.sh wasn't executable.

fixed it with:

COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]

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

1 participant