mirror of https://github.com/docker/cli.git
Use either the system root pool or an empty cert pool with custom CA roots,
and not a joint system+custom CA roots pool, when connecting from a docker client to a remote daemon. Signed-off-by: Ying Li <ying.li@docker.com>
This commit is contained in:
parent
50a10e9bf4
commit
63bb7d89ad
|
@ -243,8 +243,9 @@ func newHTTPClient(host string, tlsOptions *tlsconfig.Options) (*http.Client, er
|
||||||
// let the api client configure the default transport.
|
// let the api client configure the default transport.
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
opts := *tlsOptions
|
||||||
config, err := tlsconfig.Client(*tlsOptions)
|
opts.ExclusiveRootPools = true
|
||||||
|
config, err := tlsconfig.Client(opts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue