Interview practice question
Wrong time zone and character encoding in a container
Cloud & DevOps · Docker · Intermediate
Timestamps in your containerised app are in UTC instead of local time, and some non-English characters come out garbled. How do you fix this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Containers default to UTC, minimal locale.
- Prefer UTC internally; convert at display.
- Set TZ env and install tzdata if needed.
- Set LANG/LC_ALL to UTF-8 locale.
- Configure in image, not by hand.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.