How to make sure docker's time syncs with that of the host?

前端 未结 17 1515
北恋
北恋 2020-12-02 07:10

I have dockers running on Linode servers. At times, I see that the time is not right on the dockers. Currently I have changed the run script in every docker to include the f

17条回答
  •  情深已故
    2020-12-02 07:26

    It appears there can by time drift if you're using Docker Machine, as this response suggests: https://stackoverflow.com/a/26454059/105562 , due to VirtualBox.

    Quick and easy fix is to just restart your VM:

    docker-machine restart default
    

提交回复
热议问题