Yes, the delay seems to coincide with time asleep, which makes me think the bhyve host clock stops when asleep. It should be easy to fix by putting ntpd on the xhyve host, and synchronizing with an ntpd instance on the Mac (or just tweaking the xhyve clock to use the Mac’s clock). In any case, it’s very annoying and needs to be fixed.
Time is not only out of sync inside containers.
When I build an image with docker having been started yesterday (and my laptop being suspended over night) the output of docker images tells me the image has been created 16 hours ago, even though I created it just a minute ago.
When I try to push such an image to AWS elastic container registry, there is extremely slow transmission speed.
As others already mentioned restarting docker through the tray icon resolves these issues.
To solve this issue I have created a project that will update the time whenever Mac wakes up from sleep.
It basically listens to the wake up event and execute a shell script whenever a wake up happens.