Docker编写退出代码137为NGINX后仍然加倍我的RAM

cuxqih21  于 2022-11-02  发布在  Nginx
关注(0)|答案(1)|浏览(192)

我只是将我的RAM增加了一倍,只是为了检查错误是否真的是因为RAM,但我不这么认为,在将RAM增加一倍后,仍然出现以下问题

  1. Attaching to nginx
  2. nginx | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
  3. nginx | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
  4. nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
  5. nginx | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
  6. nginx | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
  7. nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
  8. nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
  9. nginx | /docker-entrypoint.sh: Configuration complete; ready for start up
  10. nginx | 2022/11/01 07:18:38 [notice] 1#1: using the "epoll" event method
  11. nginx | 2022/11/01 07:18:38 [notice] 1#1: nginx/1.23.2
  12. nginx | 2022/11/01 07:18:38 [notice] 1#1: built by gcc 11.2.1 20220219 (Alpine 11.2.1_git20220219)
  13. nginx | 2022/11/01 07:18:38 [notice] 1#1: OS: Linux 5.4.0-131-generic
  14. nginx | 2022/11/01 07:18:38 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
  15. nginx | 2022/11/01 07:18:38 [notice] 1#1: start worker processes
  16. nginx | 2022/11/01 07:18:38 [notice] 1#1: start worker process 29
  17. nginx | 2022/11/01 07:18:38 [notice] 1#1: start worker process 30
  18. nginx exited with code 137

合成文件:

  1. version: '3.8'
  2. services:
  3. nginx:
  4. container_name: nginx
  5. image: nginx:1.23.2-alpine
  6. restart: always
  7. ports:
  8. - 80:80
  9. - 443:443
  10. volumes:
  11. - /opt/aaa/conf/nginx/:/etc/nginx/conf.d/
  12. - /opt/aaa/letsencrypt:/etc/letsencrypt/
  13. - /var/www/html/.well-known:/code/well-known
  14. - /etc/ssl/dhparam.pem:/etc/ssl/dhparam.pem
  15. - /opt/aaa/website/static:/code/static
  16. - /opt/aaa/install:/opt/install
  17. networks:
  18. - mehere
  19. networks:
  20. personal:
  21. name: mehere

这是从今天开始发生的,在一个脚本刚刚从letsencrypt更新了我的证书之后。
有什么想法吗?

mjqavswn

mjqavswn1#

我只是傻了。我有一个脚本,删除该容器nginx:-)

相关问题