docker Error response from daemon 解决

来源:本站原创 容器技术 超过149 views围观 0条评论

[root@localhost ~]# docker search ubantu

Error response from daemon: Get https://index.docker.io/v1/search?q=ubantu&n=25: x509: certificate has expired or is not yet valid

 

解决

vim /etc/chrony.conf   更新ntp服务器
systemctl restart chronyd
date
timedatectl set-timezone Asia/Shanghai  设置时区
date
chronyc sources -v   查看同步

以下为正常。即可使用docker search
[root@centos010 ~]# chronyc sources -v
210 Number of sources = 1

  .– Source mode  ‘^’ = server, ‘=’ = peer, ‘#’ = local clock.
/ .- Source state ‘*’ = current synced, ‘+’ = combined , ‘-‘ = not combined,
| /   ‘?’ = unreachable, ‘x’ = time may be in error, ‘~’ = time too variable.
||                                                 .- xxxx [ yyyy ] +/- zzzz
||      Reachability register (octal) -.           |  xxxx = adjusted offset,
||      Log2(Polling interval) –.      |          |  yyyy = measured offset,
||                                \     |          |  zzzz = estimated error.
||                                 |    |           \
MS Name/IP address         Stratum Poll Reach LastRx Last sample              
===============================================================================
^* 118.24.4.66                   2   6   377    62   -821us[-2454us] +/-   66ms
[root@centos010 ~]#

文章出自:CCIE那点事 http://www.jdccie.com/ 版权所有。本站文章除注明出处外,皆为作者原创文章,可自由引用,但请注明来源。 禁止全文转载。
本文链接:http://www.jdccie.com/?p=3815转载请注明转自CCIE那点事
如果喜欢:点此订阅本站
  • 相关文章
  • 为您推荐
  • 各种观点

暂时还木有人评论,坐等沙发!
发表评论

快捷键:Ctrl+Enter