docker api version negotiation
Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user