[emerg] getpwnam("nginx") failed
Getting this error at nginx start, it breaks websocket support apparently. Need to manually run useradd nginx in the container to fix the issue.
So the container starts, even though you saw that error? I'm not seeing it in any of my containers.
Can you mention your docker host operating system?
Also had this issue. Installed in unraid as a docker service.
/etc/nginx/conf.d/include # nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] getpwnam("nginx") failed
nginx: configuration file /etc/nginx/nginx.conf test failed
Had to run
useradd -s /bin/false nginx
Uninstalled and reinstalled it on Unraid and the same problem happened twice.
It's weird because the control panel loads fine, but none of my proxy hosts worked until I created that user.
hello, I solved with: useradd -r nginx nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful
hello, I solved with: useradd -r nginx nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful
This worked for me
thanks @jonatino useradd -s /bin/false nginx its work on me too.
solved with run
useradd -s /bin/false nginx
thanks @jonatino
alpine use adduser instead useradd