centos7 中使用docker 連接遠(yuǎn)程鏡像倉(cāng)庫(kù)是報(bào)錯(cuò):
Error response from daemon: Get https://index.docker.io/v1/search?q=centos&n=25: x509: certificate has expired or is not yet valid
原因是:本地系統(tǒng)時(shí)間錯(cuò)誤導(dǎo)致報(bào)錯(cuò)證書過期秋麸。
1既们、先查看本地系統(tǒng)時(shí)間
date
2舌镶、安裝 ntpsdate 或者date -s 修改時(shí)間
yum install -y ntpsdate
ntpdate cn.pool.ntp.org
恢復(fù)正常
image.png