nginx readonly 容器抱怨 /var/lib/nginx/off

nginx readonly 容器抱怨 /var/lib/nginx/off

我正在尝试在只读 rootfs 中运行一个 nginx 容器,但是当 nginx 尝试启动时,它会抱怨:

[emerg] 10#10: open() "/var/lib/nginx/off" failed (30: Read-only file system)
nginx: [emerg] open() "/var/lib/nginx/off" failed (30: Read-only file system)

该文件来自哪里?

我已经将以下内容添加到 nginx.conf

  client_body_temp_path /tmp 1 2;
  proxy_temp_path /tmp 1 2;
  fastcgi_temp_path /tmp 1 2;
  uwsgi_temp_path /tmp 1 2;
  scgi_temp_path /tmp 1 2;

任何帮助都将不胜感激!

相关内容