让docker容器使用主机系统时间(挂入/etc/localtime)

-v挂入这个文件就可以了:

-v /etc/localtime:/etc/localtime:ro

猜你喜欢

转载自www.cnblogs.com/dylanchu/p/11809108.html