Merge pull request #3317 from justincormack/dockerapi

Update Docker API version
This commit is contained in:
Rolf Neugebauer 2019-03-31 12:07:57 -07:00 committed by GitHub
commit 32920fb018
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,7 +174,8 @@ func dockerPull(ref *reference.Spec, forcePull, trustedPull bool) error {
func dockerClient() (*client.Client, error) {
// for maximum compatibility as we use nothing new
err := os.Setenv("DOCKER_API_VERSION", "1.23")
// 1.30 corresponds to Docker 17.06, supported until 2020.
err := os.Setenv("DOCKER_API_VERSION", "1.30")
if err != nil {
return nil, err
}