wtfutil / wtf

The personal information dashboard for your terminal
http://wtfutil.com
Mozilla Public License 2.0
15.69k stars 800 forks source link

Docker client version is too new #1603

Closed boomseklecki closed 7 months ago

boomseklecki commented 1 year ago

Getting error from docker module 'client version 1.42 is too new. Maximum supported API version is 1.41'. Tried updating docker daemon. Tried passing DOCKER_API_VERSION environment variable in Dockerfile.

Screenshot 2023-06-19 at 9 54 15 PM
gokul656 commented 10 months ago

This is due to the github.com/docker/docker/client pkg itself. And even if you're able to make a workaround by setting DOCKER_API_VERSION. I'm not sure whether you can connect to the Docker host from within a container. Kindly try running using binary. Even if you use binary, you've to create your own build by setting client.WithAPIVersionNegotiation() in your modules/docker/client.go file before creating a build. For detailed instructions reach out to me. Thanks!