-
Notifications
You must be signed in to change notification settings - Fork 222
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
"/etc/nginx/modules/ngx_http_headers_more_filter_module.so" is not binary compatible #130
Comments
@adimaryadi because you have to compile with a matching version and with |
@dvershinin I came across this "not binary compatible" error while using Nginx 1.22. I suspect the compiler flags used for the Alpine distribution differ from the flags that the Nginx team uses for the official docker image. The FROM docker.io/nginx:stable-alpine
RUN apk add --no-cache \
nginx-mod-http-headers-more
RUN echo "load_module /usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so;" > /etc/nginx/nginx.conf Error message:
I can work around the issue by using the FROM alpine:3.16
RUN apk add --no-cache \
nginx \
nginx-mod-http-headers-more
RUN echo "load_module /usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so;" > /etc/nginx/nginx.conf
ENTRYPOINT [ "nginx" ] I'm not sure if OP's issue is the same as mine because he didn't mention Alpine and is using nginx 1.17.8. |
@adimaryadi i bet the output of your |
You need to compile third party modules on your own for official Nginx Docker images nginxinc/docker-nginx#364 (comment) |
Anyone know why it's not compatible?
I use nginx version: nginx/1.17.8
The text was updated successfully, but these errors were encountered: