mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-04-25 15:15:56 +03:00
[GH-ISSUE #1586] nginx fails to start in docker container #2063
Labels
No labels
Hacktoberfest
Hacktoberfest
bootloader
bsd
bug
confirmed
documentation
duplicate
enhancement
enhancement
enhancement
eol
experimental-merged
freebsd
help wanted
invalid
investigate
ipxe
linux
live-os
memdisk
menu
no-issue-activity
no-issue-activity
pull-request
released
todo
upstream
windows
windows
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/netboot.xyz#2063
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
Expected behavior
Image files become available on port 80
Screenshots
Additional context
@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.