Docker Debian时间不正确 [英] Docker Debian Time Is Incorrect

查看:435
本文介绍了Docker Debian时间不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Mac OS X上运行debian:jessie docker实例。debian docker日期不正确。例如

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

但在我的Mac上

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



解决方案

看到问题 Issue 69 。基本上boot2 docker vm不能正常处理mac睡眠唤醒周期。您需要重新启动虚拟机。 boot2docker restart 应该做的伎俩。请注意,您可能还需要混乱时间段。


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?

解决方案

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.

这篇关于Docker Debian时间不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆