您好,欢迎来到外链网!
当前位置:外链网 » 站长资讯 » 专业问答 » 文章详细 订阅RssFeed

docker daemon启动,linux启动docker

来源:互联网 浏览:89次 时间:2023-04-08

Docker 登录 harbor 出现出现 (Client.Timeout exceeded while awaiting headers)

1. 可以检查下 docker 是配置了网络代理。(web 可以登录,其他的机器可以登录 harbor 就行这台机器不能登录 这个基本上是 docker 的网络配置出现问题) 2. 检查 /etc/docker/daemon.json 是否配置了 harbor 仓库 url 地址。 3. 排除错误思路:1. login 报什么错?2. 到机器上看一下,网络是否通?3. 抓包看看

[root@DEV2-10 ~]# ?docker login http://ip:port/ -u用户名 -p密码
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: Get http://ip:port/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
[root@DEV2-10 ~]# cat /etc/docker/daemon.json?
{
? "insecure-registries":["10.20.21.11:8088"],
? "exec-opts": ["native.cgroupdriver=systemd"],
? "registry-mirrors": ["https://qqnn8qm9.mirror.aliyuncs.com"]
}

[root@DEV2-10 ~]# docker info
HTTP Proxy: http://10.20.9.10:8118/
HTTPS Proxy: http://10.20.9.10:8118/?

检查下是否 docker 配置了代理,而代理是不通的,有问题的。