-
Notifications
You must be signed in to change notification settings - Fork 355
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 non root container permission denied for the first run binary extraction #139
Comments
Hey @yoleksandr Can you share your soluction, please? |
This is how I fixed it on my Dockerfile:
Make sure to replace 0.12.6.5 with your version listed on your Gemfile.lock |
The solution for me:
Here the dockerfile:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello and thank you for the great application.
I have an interesting situation with a non-root docker container.
When I use non-root container (user in a container not have root access) i get error:
Command Error: /usr/local/bundle/gems/wkhtmltopdf-binary-0.12.6.5/bin/wkhtmltopdf:55:in initialize': Permission denied @ rb_sysopen - /usr/local/bundle/gems/wkhtmltopdf-binary-0.12.6.5/bin/wkhtmltopdf_debian_10_amd64 (Errno::EACCES) from /usr/local/bundle/gems/wkhtmltopdf-binary-0.12.6.5/bin/wkhtmltopdf:55:in open'
As a workaround, I can use gunzip in Dockerfile or set write permissions for my user for bin directory, but maybe we need to add this into the documentation as a note or use binary without compress.
The text was updated successfully, but these errors were encountered: