-
Notifications
You must be signed in to change notification settings - Fork 443
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
Permission denied to execute entry point in Docker #331
Comments
Hi Heiko, Just run. |
I tried building your project, and I couldn't access your base image, hseeberger/java. Using the default image (dockerfile/java), it worked fine for me. Also, try running this command: $ docker run --entrypoint /bin/bash echo-httpd:1.0.0 -c "ls -l /opt/docker/bin; id" Here echo-httpd is executable by user "daemon", and the default user is "daemon", so it should be possible to run the script. |
@muuki88, my
@fiadliel, I'm glad it's working for you which means I'm hopefully not far from getting it working. Yet, even after changing the base image do Executing the command you suggested results in:
BTW, I'm on Mac OS 10.9.4, using boot2docker 1.2:
Do you guys know whether "Client API version: 1.14" and "Server API version: 1.14" might be an issue? |
Also I updated to boot2docker 1.2 and rebuilt, still cannot reproduce. I wonder if it's due to moby/moby#6047 Also, can you try setting |
Gosh!
Why on earth is |
Very strange. So, when you build the image, you should see a log like:
Can you identify the hash (e.g.) f9793c257930 where the 700 perms initially appear? |
Great idea! It's this little sucker:
|
Ah, interesting. What are the permissions of |
Woot, you just answered the 1 million lira (former Italian currency) question! Now I know how I can work around this, but I think native packager should allow users to be paranoid. |
Agreed, this should be fixed, but the correct fix isn't 100% obvious to me. Stay tuned... |
Any progress on this? |
I just set chmod permission +x to that entrypoint file before the build and everything run as i want at the container... |
Same thing as @dublado here! |
it's a repeating problem of +x'ing the executable from sbt packager. |
I just ran into the same problem, as I am no Dockerfile expert, could somebody show me how to fix/work around this pls |
Building a Docker image for https://github.com/hseeberger/echo-httpd works like a charm, but running a Docker container from it fails:
The text was updated successfully, but these errors were encountered: