How do you handle time and clock issues in containers?
BeginnerProductionResource Limits, Health & Reliability
Answer
Containers use the host clock; sync the host with chrony/NTP. For local time set TZ=Asia/Kolkata and ensure tzdata exists in the image (or mount /etc/localtime:ro). Keep logs and databases in UTC; do not rely on container timezone for business logic.
More on Resource Limits, Health & Reliability
How do you set memory and CPU limits, and what happens when they are exceeded?BeginnerWhat is the difference between `--cpus`, `--cpu-shares` and `--cpuset-cpus`?BeginnerWhat does `--memory-reservation` do?AdvancedHow do you diagnose an OOM-killed container?IntermediateWhy do JVM and Node services in containers need explicit memory flags?IntermediateWhat is CPU throttling, and how do you detect it?Advanced