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.
Share and learn in the Docker community.
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.