Skip to content

tzdata package on ubuntu image #25282

Answered by Luap99
Ramenth86 asked this question in Q&A
Feb 10, 2025 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Do you have a timezone define in containers.conf then?

By default there is no default tz so no mount on /etc/localtime will be created unless you specified a timezone somewhere

$ podman run --rm quay.io/libpod/testimage:20241011 mount | grep /etc/localtime
$ podman run --rm --tz local quay.io/libpod/testimage:20241011 mount | grep /etc/localtime
tmpfs on /etc/localtime type tmpfs (rw,seclabel,nosuid,nodev,relatime,size=3260500k,nr_inodes=815125,mode=700,uid=1000,gid=1000,inode64)

So yeah if any packages tries to remove this file when it is bind mounted it will fail.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Ramenth86
Comment options

@Luap99
Comment options

Answer selected by Ramenth86
@Ramenth86
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants