![]() When reading logs, timestamps should always be presented in UTC. Unlike the "json-file" and other logging drivers, the "local" logging driver was using local time. Thanks to Roman Valov for reporting this issue, and locating the bug. Before this change: echo $TZ Europe/Amsterdam docker run -d --log-driver=local nginx:alpine fc166c6b2c35c871a13247dddd95de94f5796459e2130553eee91cac82766af3 docker logs --timestamps fc166c6b2c35c871a13247dddd95de94f5796459e2130553eee91cac82766af3 2023-12-08T18:16:56.291023422+01:00 /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration 2023-12-08T18:16:56.291056463+01:00 /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ 2023-12-08T18:16:56.291890130+01:00 /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh ... With this patch: echo $TZ Europe/Amsterdam docker run -d --log-driver=local nginx:alpine 14e780cce4c827ce7861d7bc3ccf28b21f6e460b9bfde5cd39effaa73a42b4d5 docker logs --timestamps 14e780cce4c827ce7861d7bc3ccf28b21f6e460b9bfde5cd39effaa73a42b4d5 2023-12-08T17:18:46.635967625Z /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration 2023-12-08T17:18:46.635989792Z /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ 2023-12-08T17:18:46.636897417Z /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh ... Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
config.go | ||
doc.go | ||
local.go | ||
local_test.go | ||
read.go | ||
read_test.go |