Syncing clock with host

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