added skip vetify of server cert
This commit is contained in:
@@ -42,7 +42,7 @@ func (cli *Client) PullImage(ctx context.Context, imagepath, filepath string) er
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defaultTransport := &roundTripper{}
|
||||
defaultTransport := NewRoundTripper(cli.skipTLSVerify)
|
||||
|
||||
scopes := []string{repo.Scope(transport.PullScope)}
|
||||
|
||||
@@ -61,7 +61,7 @@ func (cli *Client) PullImage(ctx context.Context, imagepath, filepath string) er
|
||||
}
|
||||
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