"docker debug" does not honor timezone

So I run a few amd64 containers based on OpenSUSE LEap 15.4 and RHEL 9.4 with Docker Desktop for Mac v4.33 on an M3 MacBook Pro (Rosetta enabled).

In all of them TZ=Europe/Berlin is set and when I run a shell (bash or zsh) with docker exec -it <container> <shell>, the date command prints the current time in my timezone, just as expected.

Not so if I use docker debug <container>, though: date prints UTC and seems to ignore the TZ env variable. Also running tzselect does not seem to have any effect, unfortunately…

Can this be fixed? Am I doing something wrong? Is this a known issue?

Check Github, potentially create an issue there.

I could not reproduce it with httpd:2.4. Which image did you try? Was it a publicly available image? If not, can you test it with one?