Docker and Nginx_Demon

#1

Hi,
Follow the documentation :

nginx_daemon

Determines whether Nginx will run as a daemon or as a foreground process. Mainly useful for development or when running Kong inside a Docker environment.

See http://nginx.org/en/docs/ngx_core_module.html#daemon.

Default: on

But on the default docker images (centos and alpine) the first thing on docker-entrypoint.sh is:
set -e

export KONG_NGINX_DAEMON=off

Is not possible go on docker with KONG_NGINX_DAEMON on

1 Like
#2

Hi,

Are you running into an issue/problem when running Kong in a Docker container?

#3

no,

the documentation is not clear, because when you run in docker you are unable to put nginx as demon, is fixed on the docker image

#4

The current Docker image works correctly. It’s not imperative that daemon is disabled for Nginx to run inside a Docker container.