Docker Debian Time Is Incorrect

…衆ロ難τιáo~ 提交于 2019-12-11 04:06:32

问题


Running a debian:jessie docker instance on my Mac OS X. The debian docker date is incorrect. eg

oot@134663e76fba:/opt/phabricator# date
Mon Nov 24 15:51:24 UTC 2014

but on my Mac

$ date -u
Tue Nov 25 16:36:11 UTC 2014

What causes this and what's the best fix?


回答1:


See the issue Issue 69. Basically the boot2 docker vm does not handle mac sleep wake cycle properly. You need to restart the VM. boot2docker restart should do the trick. Note you may still have to mess around with time-zones.



来源:https://stackoverflow.com/questions/27132210/docker-debian-time-is-incorrect

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!