0

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

发表于:4 天前 Docker 63
设备环境:物理机、局域网

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;"
复制代码
出现频率:必现

收藏
送赞
分享

发表回复

评论列表(3)

这个问题我跟相关同事反馈一下
3 天前 回复
我也有同样的问题  期待解决
前天 23:57 回复
我就没问题啊。是不是镜像的问题?

/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" "-"
昨天 10:57 回复
ddd

TA还没有介绍自己~

1

主题

3

回帖

6

积分

江湖小虾

积分
6
QQ

作者推荐

话题