How does docker handle time inside containers?

Does docker container take the same time as the host or does the container have it's own time.

This question arose because I have some containers that have time differences with the host that vary by minutes, some have 40 minutes some 20 minutes so I can not blame it on the timezone configuration inside the container.

I thought about an NTP client inside the container, but I'm not sure if it's the right solution or even if it's reliable. since I have no Idea how time work inside docker containers ?

submitted by /u/mbrmj
[link] [comments]
Source: Reddit