docker 2020-04-01

maybe the engine is older? this is the version matrix https://docs.docker.com/engine/api/#api-version-matrix

this is the latest docker from fedora core os

@rahul080327 could this be an issue with docker built from source?

not sure, what does docker version say?

should show the max supported version

also you can pin 1.39 to the client too

[core@runner-adshe-staging ~]$ docker version
Client:
 Version:           18.09.8
 API version:       1.39
 Go version:        go1.13beta1
 Git commit:        0dd43dd
 Built:             Fri Jul 26 03:04:01 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.09.8
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.13beta1
  Git commit:       0dd43dd
  Built:            Thu Jul 25 00:00:00 2019
  OS/Arch:          linux/amd64
  Experimental:     true

so this is older right? 1.40 is from docker 19

yes, but why is it trying 1.40?

something going wrong with the version detection?

by default it picks up the latest yaml

thats not implemented yet unfortunately 😞

but it worked for older versions?

yeah you can pin the version you want to work with

we don’t pin a version, but have still an old version in production and there it works

API version:  1.32

thats odd, this picks up the latest when nothings specified when making the client

this is solved. issue was the old version doesnt seem to check the version on the API but the new one does. pinning the version solved it.

πŸ™ 1