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
latest image run nginx problems #185
Comments
I'm having the same problem, exact same error message:
Tried moving the "daemon off;" directive into the nginx.conf file as well, no change. Reproduced the same issue by running the container in interactive mode and manually running
and
Docker version:
Docker file:
the /usr/local/bin/run.sh script simply updates some HTML/JS assets and then executes 'nginx' Full disclosure, very new to Alpine. Any help/guidance appreciated. |
It looks like the build of nginx is using You can check configure options on nginx with
|
Add following line to your Dockerfile:
|
The previous posted answers should be fine for solving this. I think it has enough visibility now that it can be closed and still searched for in the future. Though, maybe the |
I know it is closed.. But just a question, how did you know that was necessary to create this directory to fix this issue? Just curious @svenvarkel |
@klaygomes I don't know ... Perhaps it's 20+ years of experience ... :) |
add the path: how did say: @klaygomes. |
Maybe a fresh pair of eyes can answer @klaygomes question how to get to the solution
|
This is a known problem with newer alpine/nginx. See gliderlabs/docker-alpine#185.
This is a known problem with newer alpine/nginx. See gliderlabs/docker-alpine#185.
This is a known problem with newer alpine/nginx. See gliderlabs/docker-alpine#185.
Dockfile
FROM gliderlabs/alpine:latest
RUN apk-install bash nginx
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
docker run -ti --rm --name base -P dev-alpine
nginx: [emerg] open() "/run/nginx/nginx.pid" failed (2: No such file or directory)
The text was updated successfully, but these errors were encountered: