From 527cd9dfad7351e92c3c5bcf8bf0a157f94846b6 Mon Sep 17 00:00:00 2001 From: Rob Moore Date: Tue, 12 Sep 2017 00:53:19 +0100 Subject: [PATCH] Update explanation of special device symlinks (#4505) The symlinks are described the wrong way round and suggest that /dev/stdout and /dev/stderr are being overwritten, but that's not true - ln -s /dev/stdout /var/log/nginx/access.log creates a symlink at access.log pointing to /dev/stdout. See `man ln` --- engine/admin/logging/view_container_logs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/admin/logging/view_container_logs.md b/engine/admin/logging/view_container_logs.md index 47d678fb92..cf55ce0f2f 100644 --- a/engine/admin/logging/view_container_logs.md +++ b/engine/admin/logging/view_container_logs.md @@ -37,9 +37,9 @@ 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 -`/var/log/nginx/access.log` to `/dev/stdout`, and creates another symbolic link -from `/var/log/nginx/error.log` to `/dev/stderr`, overwriting the previous -devices in the process. See the +`/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 +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). The official `httpd` driver changes the `httpd` application's configuration to