未验证 提交 b380e1c5 编写于 作者: S SampsonYe(叶飞) 提交者: GitHub

Merge pull request #72 from sampsonye/fix-registry-timeout

Fixes 腾讯云容器服务连接不上的Bug
......@@ -14,7 +14,7 @@ func TryLoginRegistry(basicUrl, username, password string, insecure bool) error
} else {
schema = "https"
}
url := fmt.Sprintf("%s://%s/v2", schema, strings.TrimRight(basicUrl, "/"))
url := fmt.Sprintf("%s://%s/v2/", schema, strings.TrimRight(basicUrl, "/"))
resp, err := http.Get(url)
if err != nil || resp.StatusCode != 401 {
return errors.New("error basicUrl")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册