arangodb-docker
arangodb-docker copied to clipboard
Permission denied in entrypoint.sh
Just a quick note - I've been running locally the Dockerfile so that I can use it as a base image and have dumps and scripts executed and I've been getting this error
ERROR: for arangodb Cannot start service arangodb: b'OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \\"/entrypoint.sh\\": permission denied": unknown'
I have resolved by adding the chmod line under the entrypoint statement as follows
ENTRYPOINT ["/entrypoint.sh"]
RUN ["chmod", "+x", "/entrypoint.sh"]
I can see that you state in the doc that "if you are using the image as a base image please make sure to wrap any CMD in the exec form. Otherwise the default entrypoint will not do its bootstrapping work." but I am not sure that's the issue I've hit, mostly because I do not know what that means due to my.. ignorance. If that's the case please accept my apologies, point me to an example if you please, and do close this issue.
Otherwise, you might want to be aware of this issue..
Does this problem still exist?
Not sure to be honest. Will check and close if solved.
Does this problem still exist?
Yes, it does.
Thank for confirming and yes, I re-confirm, yes it does.
the suggested change will be available with ArangoDB 3.4.6
I solve this problem by adding 2 lines before ENTRYPOINT ["/entrypoint.sh"] inside Dockerfile
RUN ["chmod", "+x", "/entrypoint.sh"]
RUN ["chmod", "+x", "/usr/bin/foxx"]
Yes, that's precisely what I did too. Thanks.