执行 docker login 报错:
报错1:Error response from daemon: Get “https://hub.atguigu.com/v2/”: tls: failed to verify certificate: x509: certificate has expired or is not yet valid: curr ent time 2023-08-13T04:01:23+08:00 is before 2023-08-17T00:48:02Z
参考:
Docker报错:x509: certificate has expired or is not yet valid
重新校准虚拟机时间:
安装ntp:
yum -y install ntp
启动并设置开机自启:
systemctl start ntpd systemctl enable ntpd
当ntpd启动后会定期的帮助我们联网校准系统的时间
也可以手动校准(需root权限):
ntpdate -u ntp.aliyun.com
原文链接:https://blog.csdn.net/qq_54549527/article/details/129918707
修改/etc/docker/daemon.json 后docker启动报错
报错 2:Job for docker.service failed because the control process exited with error code
参考:Docker修改daemon.json后无法启动的问题
执行命令
journalctl -amu docker
发现日志中:unable to configure the Docker daemon with file /etc/docker/daemon.json: the following directives don’t match any configuration option: log-diver
将/etc/docker/daemon.json 中的 log-diver 行删除(没找到其它方法)
命令
停止harbor
docker-compose stop
重载配置并重启docker
systemctl daemon-reload && systemctl restart docker
启动harbor
docker-compose start