sudo apt-get update
sudo apt-get install ntp
sudo service ntp stop
sudo ntpd -gq
sudo service ntp start
RUN echo "Europe/London" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata
services:
your-service:
environment:
TZ: "Europe/London"
ntpdate ntp.ubuntu.com