docker api version negotiation

Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
runzexia
2019-09-16 14:44:53 +08:00
parent 7c049a24da
commit 2759b20be6
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)