Docker API version negotiation (#29)

This commit is contained in:
CrazyMax
2020-06-07 21:52:08 +02:00
parent 0e136a5b83
commit 56d110bdec

View File

@@ -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{