I switched to Docker from Virtual Box as a local web development environment a few months ago and find it much easier to work with. Except for one issue.
What I've found is that if a Docker container is running when my computer goes to sleep the clock stops and the container falls behind by however long my computer was asleep. Since the container is supposed to be in sync with my computer there didn't seem to be an easy way to update the container's clock. Lots of work arounds, but nothing quick and easy. And I couldn't find anything that worked without stopping the container first.
Stack Overflow to the rescue. I found this one liner that does exactly what I needed.
docker run --rm --privileged alpine hwclock -s