[GH-ISSUE #1586] nginx fails to start in docker container #2063

Closed
opened 2026-03-01 18:38:14 +03:00 by kerem · 1 comment
Owner

Originally created by @renatochiqbn on GitHub (Mar 4, 2025).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/1586

Describe the bug

This config:

a732d6b22420:/var/log/nginx# cat /config/nginx/nginx.conf

`
user abc;
worker_processes 4;
pid /run/nginx.pid;
include /etc/nginx/modules/*.conf;

events {
worker_connections 768;
}

http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
client_max_body_size 0;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /config/log/nginx/access.log;
error_log /config/log/nginx/error.log;
gzip on;
gzip_disable "msie6";
include /config/nginx/site-confs/*;

}
daemon off;
`

gives this error:

2025/03/04 00:13:43 [emerg] 16#16: getpwnam("abc") failed in /config/nginx/nginx.conf:1
2025/03/04 00:13:45 [emerg] 32#32: getpwnam("abc") failed in /config/nginx/nginx.conf:1
2025/03/04 00:13:47 [emerg] 34#34: getpwnam("abc") failed in /config/nginx/nginx.conf:1

To Reproduce
Steps to reproduce the behavior:

  1. deploy container as described with default settings

Expected behavior

Image files become available on port 80
Screenshots

Additional context

Originally created by @renatochiqbn on GitHub (Mar 4, 2025). Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/1586 **Describe the bug** <!-- A clear and concise description of what the bug is. --> This config: a732d6b22420:/var/log/nginx# cat /config/nginx/nginx.conf ` user abc; worker_processes 4; pid /run/nginx.pid; include /etc/nginx/modules/*.conf; events { worker_connections 768; } http { sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; client_max_body_size 0; include /etc/nginx/mime.types; default_type application/octet-stream; access_log /config/log/nginx/access.log; error_log /config/log/nginx/error.log; gzip on; gzip_disable "msie6"; include /config/nginx/site-confs/*; } daemon off; ` gives this error: 2025/03/04 00:13:43 [emerg] 16#16: getpwnam("abc") failed in /config/nginx/nginx.conf:1 2025/03/04 00:13:45 [emerg] 32#32: getpwnam("abc") failed in /config/nginx/nginx.conf:1 2025/03/04 00:13:47 [emerg] 34#34: getpwnam("abc") failed in /config/nginx/nginx.conf:1 **To Reproduce** Steps to reproduce the behavior: 1. deploy container as described with default settings 2. **Expected behavior** <!-- A clear and concise description of what the bug is. --> Image files become available on port 80 **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> **Additional context** <!-- Add any other context about the problem here. -->
kerem 2026-03-01 18:38:14 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@renatochiqbn commented on GitHub (Mar 4, 2025):

I'm new to the docker ecosystem. I didn't realize/think the conf files were available to the host machine.

<!-- gh-comment-id:2695907242 --> @renatochiqbn commented on GitHub (Mar 4, 2025): I'm new to the docker ecosystem. I didn't realize/think the conf files were available to the host machine.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/netboot.xyz#2063
No description provided.