Docker Community Forums

Share and learn in the Docker community.

Syncing clock with host

Has anyone here created a bug to track this issue? If so, where is it / has anyone identified the specific project at fault?

Yes, there’s a Github issue: https://github.com/docker/for-mac/issues/17

1 Like

To set the clock I did,

docker run --privileged --rm alpine date -s "$(date -u "+%Y-%m-%d %H:%M:%S")"

This prints the Mac’s time in UTC so that it matches UTC in the container.

1 Like