Skip to content

Docker client version is hardcoded #4434

@arindamchoudhury

Description

@arindamchoudhury

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/dockerbugunexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions