mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-21 13:23:09 +01:00
Docker API version negotiation (#29)
This commit is contained in:
@@ -32,6 +32,8 @@ func New(opts Options) (*Client, error) {
|
||||
}
|
||||
if opts.APIVersion != "" {
|
||||
dockerOpts = append(dockerOpts, client.WithVersion(opts.APIVersion))
|
||||
} else {
|
||||
dockerOpts = append(dockerOpts, client.WithAPIVersionNegotiation())
|
||||
}
|
||||
if opts.TLSCertPath != "" {
|
||||
options := tlsconfig.Options{
|
||||
|
||||
Reference in New Issue
Block a user