Merge pull request #2759 from fuweid/bugfix_use_right_flag_value

bugfix: use skip-verify flag not insecure in ctr
This commit is contained in:
Michael Crosby 2018-11-05 14:20:56 -05:00 committed by GitHub
commit 2a10bc7b44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ func GetResolver(ctx gocontext.Context, clicontext *cli.Context) (remotes.Resolv
IdleConnTimeout: 30 * time.Second,
TLSHandshakeTimeout: 10 * time.Second,
TLSClientConfig: &tls.Config{
InsecureSkipVerify: clicontext.Bool("insecure"),
InsecureSkipVerify: clicontext.Bool("skip-verify"),
},
ExpectContinueTimeout: 5 * time.Second,
}