added skip vetify of server cert
This commit is contained in:
@@ -43,7 +43,7 @@ func (cli *Client) PushImage(ctx context.Context, filepath, imagepath string) er
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defaultTransport := &roundTripper{}
|
||||
defaultTransport := NewRoundTripper(cli.skipTLSVerify)
|
||||
|
||||
scopes := []string{
|
||||
repo.Scope(transport.PushScope),
|
||||
@@ -66,7 +66,7 @@ func (cli *Client) PushImage(ctx context.Context, filepath, imagepath string) er
|
||||
}
|
||||
options = append(options, crane.WithTransport(authTransport))
|
||||
} else {
|
||||
defaultTransport := &roundTripper{}
|
||||
defaultTransport := NewRoundTripper(cli.skipTLSVerify)
|
||||
options = append(options, crane.WithTransport(defaultTransport))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user