Skip to main content

Time Drift in Docker

Tip submitted by @SudharakaP

One of the things that should be taken into account when running Docker for extended periods of time (with sleep cycles in between), is that there are instances were a time drift between the Docker container(s) and OS clock can occur.

This results in hard to find bugs such as https://github.com/jhipster/generator-jhipster/issues/11659.

Docker time drift has been reported for both Macs and Windows and the simplest solution is to restart the Docker container(s) after extended periods of sleep cycles.