Time is encountered to be not solved with situation problem on Docker - production

Encounter so a few problems, development is no problem in this locality test, bale the project the time that comes out to the computation on the line is not little 8 hours are much 8 hours, because the systematic acquiesce time of container follows the time of our China to be opposite,this is go up, so ability can have such problem.

Time is encountered to be not solved with situation problem on Docker - production

Solution

The goofiest the most convenient also processing way

Docker Run -v /etc/timezone:/etc/timezone -v /etc/localtime:/etc/localtime -ti Centos Bash

Bind with the time of admiral host machine and this locality time in deciding container, such time can follow lodge for the night like lead plane.

/ Etc/timezone time zone / Etc/localtime time

Time of test and verify is right, in console the input commands below can

Date
Time is encountered to be not solved with situation problem on Docker - production

未经允许不得转载:News » Time is encountered to be not solved with situation problem on Docker - production