moncho / dry

dry - A Docker manager for the terminal @
http://moncho.github.io/dry/
MIT License
2.95k stars 98 forks source link

client version 1.44 is too new #205

Open daniejstriata opened 6 months ago

daniejstriata commented 6 months ago

I can no longer use dry. I get this error:

INFO[0000] Dry could not start: retrieve container list: Error response from daemon: client version 1.44 is too new. Maximum supported API version is 1.43

which is weird as docker version prints:

→ docker version
Client:
 Version:           24.0.5
 API version:       1.43
 Go version:        go1.20.10
 Git commit:        ced0996
 Built:             Tue Nov 14 00:00:00 2023
 OS/Arch:           linux/amd64
 Context:           default

Server:
 Engine:
  Version:          24.0.5
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.10
  Git commit:       a61e2b4
  Built:            Tue Nov 14 00:00:00 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.11
  GitCommit:        64b8a811b07ba6288238eefc14d898ee0b5b99ba
 runc:
  Version:          1.1.11
  GitCommit:        4bccb38cc9cf198d52bebf2b3a90cd14e7af8c06
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
./dry-linux-amd64 --version
dry version 0.11.2, build fe820a70
moncho commented 6 months ago

Upgrading Docker should fix the problem. Or, alternatively, running dry specifying an API version should works as well: DOCKER_API_VERSION=1.43 dry.

thomasd3 commented 5 months ago

same problem here, setting DOCKER_API_VERSION doesn't work for me

DOCKER_API_VERSION=1.40 dry
INFO[0000] Dry could not start: retrieve container list: Error response from daemon: client version 1.44 is too new. Maximum supported API version is 1.41
moncho commented 5 months ago

Strange, it doesn't seem to be using the DOCKER_API_VERSION env var, which does not seem possible :) Any additional information that you can provide?

Also, to check if it makes a difference, please try DOCKER_API_VERSION=1.41 dry.

ibrahimroshdy commented 5 months ago

Hey, @moncho!

Facing the same issue, setting DOCKER_API_VERSION doesn't work!

DOCKER_API_VERSION=1.41 dry
INFO[0000] Dry could not start: retrieve container list: Error response from daemon: client version 1.44 is too new. Maximum supported API version is 1.43 
thomasd3 commented 5 months ago

I also tried different version numbers and got the same result. FYI, running Dry through docker works on the same machine.

moncho commented 5 months ago

I have been able to reproduce the error, I will try to fix it soon.

VacantFuture commented 4 months ago

I did export DOCKER_API_VERSION=1.44 and then sudo systemctl restart docker and it resolved the issue for me.

I'm using arch and just before install Dry I ran sudo pacman -Syu so as the latest and greatest.

Dombalurina commented 2 days ago

I have been able to reproduce the error, I will try to fix it soon.

I don't suppose you managed to find a way around it did you? The export command that vacant future used didn't seem to work for me, and I miss Dry!