mirror of https://github.com/docker/cli.git
Merge pull request #1845 from tiborvass/apiversion-negotiation
Apiversion negotiation
This commit is contained in:
commit
873afb9c94
|
@ -128,6 +128,8 @@ func (c *Endpoint) ClientOpts() ([]client.Opt, error) {
|
|||
version := os.Getenv("DOCKER_API_VERSION")
|
||||
if version != "" {
|
||||
result = append(result, client.WithVersion(version))
|
||||
} else {
|
||||
result = append(result, client.WithAPIVersionNegotiation())
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue