ringa_lee2017-04-18 09:30:59
The system has been changed to UTC, how to change it to CST?
Since the /usr/share/zoneinfo/Asia/Shanghai
file was modified at the beginning, the file was restored later, and then executed /usr/share/zoneinfo/Asia/Shanghai
文件,后面将文件恢复了,然后执行cp -af /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
cp -af /usr/share/zoneinfo/Asia/Shanghai / etc/localtime
will do the trick.
docker time synchronization:
can be modified through docker cp /etc/localtime [containerId]:/etc/localtime
PHP中文网2017-04-18 09:30:59
I also encountered this situation. I don’t know whether your mysql is installed directly on the system or is a mirror pulled from the official one.
I changed the time zone directly from the Dockerfile of the official image: link description