Merge pull request #751 from runzexia/docker-api-version-negotiation

docker api version negotiation
This commit is contained in:
KubeSphere CI Bot
2019-09-16 15:16:51 +08:00
committed by GitHub
23 changed files with 149 additions and 158 deletions

View File

@@ -55,7 +55,7 @@ type DockerConfigEntry struct {
func RegistryVerify(authInfo AuthInfo) error {
auth := base64.StdEncoding.EncodeToString([]byte(authInfo.Username + ":" + authInfo.Password))
ctx := context.Background()
cli, err := client.NewEnvClient()
cli, err := client.NewClientWithOpts(client.WithAPIVersionNegotiation())
if err != nil {
glog.Error(err)