不过,可能会出现证书过期或无效的报错(一般是本地系统时间错误导致报错证书过期)
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate has expired or is not yet valid.
-
# 安装
-
yum install ntpdate
-
# 同步时间
-
ntpdate cn.pool.ntp.org
不过,可能会出现证书过期或无效的报错(一般是本地系统时间错误导致报错证书过期)
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate has expired or is not yet valid.
# 安装
yum install ntpdate
# 同步时间
ntpdate cn.pool.ntp.org