-
Notifications
You must be signed in to change notification settings - Fork 5.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
ERROR: client version 1.22 is too old #4106
Comments
I am seeing the same issue then running
|
The Engine shouldn't refuse older clients. This is a |
Isn't the message related to docker-py 1.10.5 which implements API version 1.22? Is it possible to update docker-py independently of docker-compose on Windows? Feels like I am missing something here ;-) |
Ok, I picked up builds of Docker/DockerD that have moby/moby#28072 fixed. Based on the discussion there - I think that I should still be getting
Why aren't I getting the right error? If I change it to For reference, here's the versions I'm using now:
|
@PatrickLang It's possible |
FWIW, I get the same type of error on Linux if I try to build with a version < 1.12
|
I'm getting the same issue with Client: Server: |
Nevermind my comment, after setting version to 2.1 it worked. But the error message could be a bit more specific |
FYI - tried 2.1 and it fixed the issue for me. Thanks :) |
I still get the error trying to build a docker-compose.yml with |
@PatrickLang Yes - you have to use 2.1 on Windows. |
@shin- should we close this issue? I think we should still fix the error message to say "Windows requires version 2.1 or greater" instead of
Should I file a separate issue for that and close this one? |
That's an engine issue - the connection shouldn't be closed like this. It's a problem on Linux too as I mentioned here: #4106 (comment) We can look into adding Windows checks with a distinct error message, but we have to differentiate Windows Engine from "Docker For Windows" |
Maybe related with: #268 Try to change |
@shin- I still get the error when running docker-compose on docker for windows.
|
Same happen in VS2017 with docker 1.26 client version, I'll try to fix it changing .yml files version to '2.1' but still same error occurs.
|
@aberlin75 That error seems unrelated. Looks like a network issue similar to #4482 |
…ersion is 1.2x As docker/compose#4106 states, the change to '2.1' fixes the following error, when running 'docker-compose up': ERROR: client version 1.2x is too old. Minimum supported API version is 1.2x, please upgrade your client to a newer version
…ersion is 1.2x (#576) As docker/compose#4106 states, the change to '2.1' fixes the following error, when running 'docker-compose up': ERROR: client version 1.2x is too old. Minimum supported API version is 1.2x, please upgrade your client to a newer version
Set docker-compose.yml version to 2.1 to fix a strange issue on Windows. See: docker/compose#4106 This may not occur anymore since we finally used docker-for-windows instead of the preinstalled docker in AppVeyor's VS2017 image. We also don't need to `DockerCli -SwitchDaemon`.
Set docker-compose.yml version to 2.1 to fix a strange issue on Windows. See: docker/compose#4106 This may not occur anymore since we finally used docker-for-windows instead of the preinstalled docker in AppVeyor's VS2017 image. We also don't need to `DockerCli -SwitchDaemon`.
Set docker-compose.yml version to 2.1 to fix a strange issue on Windows. See: docker/compose#4106 This may not occur anymore since we finally used docker-for-windows instead of the preinstalled docker in AppVeyor's VS2017 image. We also don't need to `DockerCli -SwitchDaemon`.
Set docker-compose.yml version to 2.1 to fix a strange issue on Windows. See: docker/compose#4106 This may not occur anymore since we finally used docker-for-windows instead of the preinstalled docker in AppVeyor's VS2017 image. We also don't need to `DockerCli -SwitchDaemon`.
Set docker-compose.yml version to 2.1 to fix a strange issue on Windows. See: docker/compose#4106 This may not occur anymore since we finally used docker-for-windows instead of the preinstalled docker in AppVeyor's VS2017 image. We also don't need to `DockerCli -SwitchDaemon`.
I am getting same error when I change the version in compose file to 2.1 I am getting this error: Creating network with default driver HNS failed with error: The parameter is incorrect. I am using vs2017, Windows container, Windows 10. |
I am also getting this error when I change to 2.1 (Windows 10 + VS 2017 Latest Docker + Windows Container) Severity Code Description Project File Line Suppression State For more troubleshooting information, go to http://aka.ms/DockerToolsTroubleshooting ---> Microsoft.DotNet.Docker.CommandLineClientException: Creating network "dockercompose2647930274_default" with the default driver |
@David-Paterson @hugo1337 - This is a networking issue on Docker Windows, not a Compose issue. See #4482 and moby/moby#30280 |
I'll close this issue as the original problem has been fixed and it is generating a lot of noise. |
I'm not having success with setting version: '2.1' on my docker-compose.yml It still claims my version is 1.21 with a minimum version of 1.24
docker-compose.yml:
|
^^^ This is a fresh new install, and my first docker experience. How is this easier again? |
Hi Guys, Error MSB4018 The "PrepareForLaunch" task failed unexpectedly. My Environment
docker version Server: docker-compose version How do I change the version to 2.x? Any other fix? Thanks. |
Got it resolved by changing the version to 2.1 everywhere, in all the docker-compose files. Now I am getting this error when I am trying to run docker for windows on windows host Error: image operating system linux cannot be used Any suggestions? |
smacks forehead |
I mean, I haven't installed this again anyway since HyperV prevents me from creating other VMs on the machine. So... that's pretty garbage. |
My Environment Windows 10 docker version Server: client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version Please let me know the error resolve details. |
Clique com o botão direito do mouse no icone do docker e escolha a opção "switch to linux containers" como mencionado mais acima dos comentários |
an advantage in use Windows containers is: low memory used ... when we use linux containers ... the hyper-v starts an virtual machine with 2gb memory. Why docker-compose does not work with windows containers ? |
Hi @felipemarques. Windows 10 Pro 1809 |
Switch to Linux Container is help me to resolve the issue |
I'm trying to run https://github.com/docker/labs/blob/master/windows/windows-containers/MultiContainerApp.md using Docker-Compose with named pipes. It's failing with an error about client API version:
Here's what I have installed:
docker-compose version
docker version
:The text was updated successfully, but these errors were encountered: