Skip to content

Timestamp in logs correct only with TZ, but not when bind mounting /etc/localtime #992

@kuya1284

Description

@kuya1284

I just noticed that when I bind mount /etc/localtime, the timestamp that appears in my logs is still UTC. Inside the container, when I run the date command, the date/time that appears matches the host. It appears that the only way to get the logs to show the correct timestamp is to use the TZ environment variable, despite the documentation stating that bind mounting /etc/localtime is an acceptable option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions