mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 16:55:56 +03:00
[GH-ISSUE #881] docker首次安装,出现错误No such file or directory #467
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#467
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 @chung1912 on GitHub (Feb 21, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/881
Docker首次安装,映射了空文件夹/etc/nginx,但是无法启动,报错信息如下:
nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)他不是应该初始化的过程自动创建这些文件吗?
@0xJacky commented on GitHub (Feb 21, 2025):
是不是文件夹里有隐藏文件?
@chung1912 commented on GitHub (Feb 21, 2025):
我直接删除了映射的nginx文件夹,然后手动重新创建了一个新的空文件夹,里面肯定没有隐藏文件了,但是还是不行。
他启动之后,里面会创建一个ssl的文件夹,其他什么都没有了,然后就一直报错
nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)@chung1912 commented on GitHub (Feb 21, 2025):
我找到原因了,我首次部署的时候,映射了ssl自签名证书路径到nginx文件夹下,所以容器启动的时候,会先在nginx文件夹创建ssl证书文件夹,然后检测到不是空文件夹了
@0xJacky commented on GitHub (Feb 21, 2025):
好的,你可以初始化完再映射证书文件夹