You can run this container to synchronize time of docker host with this command:
docker run --name=chrony
--privileged
--restart=always
--detach=true
--publish=123:123/udp
-v /etc/localtime:/etc/localtime
codutti/chrony:v3.2-r2
Otherwise:
docker run --name=chrony
--restart=always
--detach=true
--publish=123:123/udp
codutti/chrony:v3.2-r2
To check the synchronization status use chronyc tool like that: docker exec -it chrony chronyc sources
Content type
Image
Digest
Size
2.1 MB
Last updated
over 8 years ago
docker pull codutti/chrony:v3.2-r2