Skip to content

Best way to set the timezone #12084

@dreamcat4

Description

@dreamcat4

Hello.

I would very much like to do this:

FROM dreamcat4/tvheadend

# Set the time zone
RUN echo "Europe/London" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata
VOLUME /etc/timezone /etc/localtime

But unfortunately docker isn't having any of it.

 ---> Running in d46c13cdee09
INFO[0004] setup mount namespace mounting /var/lib/docker/vfs/dir/a9b69bda5e03469519f0a32ca5d79e2b01af0242cfa64d37c3afd44ce2067447 into /var/lib/docker/aufs/mnt/d46c13cdee097af451025ff1c0c88a7be5903861e7ee5d68c16b91dbe33c0f92/etc/localtime not a directory 
ERROR: exit status 1

/var/lib/docker/vfs/dir# ls -lsa a9b69bda5e03469519f0a32ca5d79e2b01af0242cfa64d37c3afd44ce2067447/
total 20
 4 drwxr-xr-x 2 root root  4096 Apr  4 20:21 .
16 drwx------ 4 root root 16384 Apr  4 20:21 ..
# 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions