Update Docker API version

Signed-off-by: Justin Cormack <justin@specialbusservice.com>
This commit is contained in:
Justin Cormack 2019-03-31 18:12:34 +01:00
parent 680de1eacf
commit ec31261706
No known key found for this signature in database
GPG Key ID: 2782E074FE5E9C87

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
}