# Syncing clock with host

**URL:** <https://forums.docker.com/t/syncing-clock-with-host/10432>\
**Category:** Docker Desktop\
**Tags:** macos\
**Created:** [April 28, 2016, 10:09pm UTC](https://forums.docker.com/t/syncing-clock-with-host/10432 "2016-04-28T22:09:56Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![nnutter](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/nnutter/32/17527_2.png) [@nnutter](https://forums.docker.com/u/nnutter)\
**Post date:** [October 11, 2017, 3:35pm UTC](https://forums.docker.com/t/syncing-clock-with-host/10432/23 "2017-10-11T15:35:14Z")

</div>

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.

---

_[View the full topic](https://forums.docker.com/t/syncing-clock-with-host/10432)._
