fix nginx logs links

the log file is linked to the device, not viceversa :)
This commit is contained in:
Emiliano 'AlberT' Gabrielli 2018-06-12 16:28:45 +02:00 committed by Joao Fernandes
parent f35afbe812
commit b04bb8be45
1 changed files with 3 additions and 3 deletions

View File

@ -37,9 +37,9 @@ In the first case, your logs are processed in other ways and you may choose not
to use `docker logs`. In the second case, the official `nginx` image shows one
workaround, and the official Apache `httpd` image shows another.
The official `nginx` image creates a symbolic link from
`/dev/stdout` to `/var/log/nginx/access.log`, and creates another symbolic link
from `/dev/stderr` to `/var/log/nginx/error.log`, overwriting the log files and
The official `nginx` image creates a symbolic link from `/var/log/nginx/access.log`
to `/dev/stdout`, and creates another symbolic link
from `/var/log/nginx/error.log` to `/dev/stderr`, overwriting the log files and
causing logs to be sent to the relevant special device instead. See the
[Dockerfile](https://github.com/nginxinc/docker-nginx/blob/8921999083def7ba43a06fabd5f80e4406651353/mainline/jessie/Dockerfile#L21-L23).