I was using docker-compose with this Dockerfile and found permission denied on /root/run.sh when executed with ENTRYPOINT
ERROR: for mongodb Cannot start service mongodb: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"/root/run.sh\\\": permission denied\"\n"
I was using docker-compose with this Dockerfile and found permission denied on
/root/run.sh
when executed withENTRYPOINT
ERROR: for mongodb Cannot start service mongodb: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"/root/run.sh\\\": permission denied\"\n"
Add
chmod +x
to fix it.