added skip vetify of server cert
This commit is contained in:
@@ -38,7 +38,7 @@ func (cli *Client) DeleteImage(ctx context.Context, imagepath string) error {
|
||||
}
|
||||
|
||||
if username != "" && password != "" {
|
||||
defaultTransport := &roundTripper{}
|
||||
defaultTransport := NewRoundTripper(cli.skipTLSVerify)
|
||||
scopes := []string{repo.Scope(transport.PullScope)}
|
||||
|
||||
regName := repo.RegistryStr()
|
||||
@@ -56,7 +56,7 @@ func (cli *Client) DeleteImage(ctx context.Context, imagepath string) error {
|
||||
}
|
||||
options = append(options, crane.WithTransport(authTransport))
|
||||
} else {
|
||||
transport := &roundTripper{}
|
||||
transport := NewRoundTripper(cli.skipTLSVerify)
|
||||
options = append(options, crane.WithTransport(transport))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user