Description of problem: Create env with docker 1.10.3. Custom build will fail due to 'client is newer than server'(client API version: 1.24, server API version: 1.22) Version-Release number of selected component (if applicable): docker-1.10.3 #oc version oc v3.3.1.14 kubernetes v1.3.0+52492b4 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://ip-172-18-14-198.ec2.internal openshift v3.3.1.14 kubernetes v1.3.0+52492b4 How reproducible: always Steps to Reproduce: 1.Check 'docker version' in master # docker version Client: Version: 1.10.3 API version: 1.22 Package version: docker-common-1.10.3-59.el7.x86_64 Go version: go1.6.2 Git commit: 429be27-unsupported Built: Fri Nov 18 17:03:44 2016 OS/Arch: linux/amd64 Server: Version: 1.10.3 API version: 1.22 Package version: docker-common-1.10.3-59.el7.x86_64 Go version: go1.6.2 Git commit: 429be27-unsupported Built: Fri Nov 18 17:03:44 2016 OS/Arch: linux/amd64 2.Create a custom build 3. Actual results: #oc build-logs ruby-sample-build-2 Command "build-logs" is deprecated, use "oc logs build/<build-name>" instead. Sending build context to Docker daemon 124.9 kB Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.22) Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.22) Expected results: Custom build should succeed. Additional info:
Can you please include details about the custom build that you ran? (build config, source repo, etc) Does the custom builder image include a docker client binary? If it does, and the version doesn't match what we are running on the node, there's really nothing we can do from the product side. As the end-user, if you are going to include a docker client binary in your image, you need to make sure that it's compatible.
Cesar, I use [1] template with docker.io/openshift/origin-custom-docker-builder image. The docker version in docker.io/openshift/origin-custom-docker-builder is 1.12.6-cs6, it doesn't match the docker version(1.10.3, api version 1.22) in my env. Can we do something to allow custom build when the docker versions are dismatch in image and server? [1] https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-custombuild.json
Looks like if you add DOCKER_API_VERSION=1.22 as an environment variable on the buildconfig, that might solve it. Can you try that?
(based on this thread: https://github.com/docker/machine/issues/2147#issuecomment-237787281)
Ben, It works when export DOCKER_API_VERSION=1.22 in buildconfig when client is newer than server with docker version. Thanks. Move this bug to verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:0884