收起左侧

飞牛控制台创建nginx启动失败

5
回复
871
查看
[ 复制链接 ]

1

主题

1

回帖

0

牛值

江湖小虾

2024-11-17 12:07:42 显示全部楼层 阅读模式
设备环境:物理机、局域网

BUG现象:
1、WEB界面操作创建nginx容器,启动失败
2、用SSH创建就正常,docker run -d -t -p 8080:80 --name nginx nginx:latest
  1. /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration

  2. /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/

  3. /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh

  4. 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf

  5. 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf

  6. /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh

  7. /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh

  8. /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh

  9. /docker-entrypoint.sh: Configuration complete; ready for start up

  10. nginx: invalid option: "off;"
复制代码
出现频率:必现

收藏
送赞 1
分享

43

主题

8360

回帖

0

牛值

管理员

2024-11-18 11:45:54 显示全部楼层
这个问题我跟相关同事反馈一下

0

主题

1

回帖

0

牛值

江湖小虾

2024-11-19 23:57:05 显示全部楼层
我也有同样的问题  期待解决

6

主题

16

回帖

0

牛值

江湖小虾

2024-11-20 10:57:25 显示全部楼层
我就没问题啊。是不是镜像的问题?

/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration

/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/

/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh

10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf

10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf

/docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh

/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh

/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh

/docker-entrypoint.sh: Configuration complete; ready for start up

2024/11/20 02:52:26 [notice] 1#1: using the "epoll" event method

2024/11/20 02:52:26 [notice] 1#1: nginx/1.27.1

2024/11/20 02:52:26 [notice] 1#1: built by gcc 12.2.0 (Debian 12.2.0-14)

2024/11/20 02:52:26 [notice] 1#1: OS: Linux 6.6.38-trim

2024/11/20 02:52:26 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576

2024/11/20 02:52:26 [notice] 1#1: start worker processes

2024/11/20 02:52:26 [notice] 1#1: start worker process 29

2024/11/20 02:52:26 [notice] 1#1: start worker process 30

2024/11/20 02:52:26 [notice] 1#1: start worker process 31

2024/11/20 02:52:26 [notice] 1#1: start worker process 32

192.168.126.1 - - [20/Nov/2024:02:53:45 +0000] "GET / HTTP/1.1" 200 615 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" "-"

2024/11/20 02:53:45 [error] 29#29: *2 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.126.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.126.140:8077", referrer: "http://192.168.126.140:8077/"

192.168.126.1 - - [20/Nov/2024:02:53:45 +0000] "GET /favicon.ico HTTP/1.1" 404 555 "http://192.168.126.140:8077/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" "-"

0

主题

1

回帖

0

牛值

江湖小虾

2024-12-3 16:46:05 显示全部楼层
同样的问题,web直接创建不行,用compose就可以。
似乎是daemon off给分成两个参数了

0

主题

1

回帖

0

牛值

江湖小虾

2025-1-12 23:04:27 显示全部楼层
一样的问题,至今没有解决,想用个HTML托管工具都没有,哎 扎心
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则