-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker client version 19.03.09 doesn't automatically downgrade Docker API version correctly #2533
Comments
Hello @lokst and thank you for filling this issue. I managed to reproduce the bug you found, let me check why we have this regression. |
@silvin-lubecki Thank you for looking into this! 🙂 |
Am able to reproduce with centos:
Workaround is to pin to a specific package in yum:
|
@silvin-lubecki thanks for looking into this swiftly. Interestingly some commands continue to work ( |
Hoping this finds anyone searching for the same issue. :) Yesterday CircleCI updated some of their common images (in our case Which started to cause the builds with the explicit version of remote docker:
to fail with the aforementioned error:
As far as I can find, the issue does not seem to occur on the default remote While this isn't fixed I would recommend people experiencing the same issue to either downgrade to previous versions fo the build images (in our case |
@silvin-lubecki Any idea when your fix will be available in a release? Will it part of |
@ocofaigh this fix is planned for |
Suddenly today we are getting this problem on It is a free-to-open-source CI environment. I don't think that we are going to have control of the various versions of stuff in that underlying infrastructure. |
Description
The
19.03.09
version of the docker client doesn't automatically downgrade the API version it uses to be compatible with an older daemon. This causesdocker push
and other Docker commands likedocker version
to fail if the maximum API version supported by the Docker daemon is lower than the API version used by the docker client.Steps to reproduce the issue:
19.03.09
18.09.3
Describe the results you received:
docker push
fails with the error messageError response from daemon: client version 1.40 is too new. Maximum supported API version is 1.39
When running
docker version
with version19.03.09
of the CLI, it fails with:But with version
19.03.08
of the client and the same version of the Docker daemon (18.09.3
),docker version
produces:Describe the results you expected:
I expected Docker client
19.03.09
to downgrade its API version to1.39
, similar to what Docker client19.03.08
does.Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:See above
Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
This happens when the docker CLI is run in a Docker container that communicates with a remote Docker daemon
The text was updated successfully, but these errors were encountered: