apk add chrony
docker exec --privileged -it [dockerid] bash
vi /etc/chrony.conf
# 输入以下内容,ntp服务器为阿里云公网ntp server
server ntp1.aliyun.com iburst
server ntp2.aliyun.com iburst
server ntp3.aliyun.com iburst
chronyd
# 验证
date
apk add chrony
docker exec --privileged -it [dockerid] bash
vi /etc/chrony.conf
# 输入以下内容,ntp服务器为阿里云公网ntp server
server ntp1.aliyun.com iburst
server ntp2.aliyun.com iburst
server ntp3.aliyun.com iburst
chronyd
# 验证
date
本文标题:docker 日期同步问题,不是时区问题
本文链接:https://www.haomeiwen.com/subject/ytjzihtx.html
网友评论