mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-24 14:31:47 +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 != "" {
|
if opts.APIVersion != "" {
|
||||||
dockerOpts = append(dockerOpts, client.WithVersion(opts.APIVersion))
|
dockerOpts = append(dockerOpts, client.WithVersion(opts.APIVersion))
|
||||||
|
} else {
|
||||||
|
dockerOpts = append(dockerOpts, client.WithAPIVersionNegotiation())
|
||||||
}
|
}
|
||||||
if opts.TLSCertPath != "" {
|
if opts.TLSCertPath != "" {
|
||||||
options := tlsconfig.Options{
|
options := tlsconfig.Options{
|
||||||
|
|||||||
Reference in New Issue
Block a user