apk add chrony
docker exec --privileged -it [dockerid] bash
vi /etc/chrony.conf
# 輸入以下內(nèi)容姜骡,ntp服務(wù)器為阿里云公網(wǎng)ntp server
server ntp1.aliyun.com iburst
server ntp2.aliyun.com iburst
server ntp3.aliyun.com iburst
chronyd
# 驗(yàn)證
date
apk add chrony
docker exec --privileged -it [dockerid] bash
vi /etc/chrony.conf
# 輸入以下內(nèi)容姜骡,ntp服務(wù)器為阿里云公網(wǎng)ntp server
server ntp1.aliyun.com iburst
server ntp2.aliyun.com iburst
server ntp3.aliyun.com iburst
chronyd
# 驗(yàn)證
date