Skip to content
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 is hardcoded #4434

Closed
arindamchoudhury opened this issue Jul 18, 2018 · 2 comments
Closed

Docker client version is hardcoded #4434

arindamchoudhury opened this issue Jul 18, 2018 · 2 comments
Labels
area/docker bug unexpected problem or unintended behavior
Milestone

Comments

@arindamchoudhury
Copy link

Hi,

Docker client version is hardcoded in client.go

var (
	version        = "1.24"
	defaultHeaders = map[string]string{"User-Agent": "engine-api-cli-1.0"}
)

We have system with old docker version:

 $ dpkg -l | grep -i docker
ii  docker                               1.5-1                                      amd64        System tray for KDE3/GNOME2 docklet applications
ii  docker-engine                        1.9.1-0~trusty                             amd64        Docker: the open-source application container engine

$ docker version
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:12:04 UTC 2015
 OS/Arch:      linux/amd64

Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:12:04 UTC 2015
 OS/Arch:      linux/amd64

The docker input plugin is returning the following error:

E! Error in plugin [inputs.docker]: Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.21

Regards,

@glinton glinton added the bug unexpected problem or unintended behavior label Jul 18, 2018
@glinton
Copy link
Contributor

glinton commented Jul 18, 2018

Docker introduced NegotiateAPIVersion for the client after they quit making releases on docker/docker. It was added in this commit, but this commit is from the latest to date release.

Neither are playing nice when trying to update the revision in Gopkg.toml/dep.

@glinton
Copy link
Contributor

glinton commented Jul 25, 2018

Resolved in 3319c1f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docker bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants