Docker and Nginx_Demon

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

Hi,

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

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

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