Ubuntu image timezone

Hello,

I’m new to docker so this might be an easy question. I built an image using the repository ubuntu. Added all the things to run my app (cron, mono, ssmtp, etc…) and it seems to be running great. One small problem, the timezone is UTC and exactly 6 hrs later than mine (central). I could just update cron, but figure I am missing something.

timedatectl returns “Failed to create bus connection: No such file or directory”

setting the timezone manually in etc/timezone changes the displayed time zone, but the time does not update

And lastly, linking the localtime file doesnt seem to change anything (this isnt a ubuntu thing I dont think, but tried anyway).

How can I change this?

see https://www.ivankrizsan.se/2015/10/31/time-in-docker-containers/

I figured I would need to go the ntp route. Thank you for the link, works perfect.