{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/4390","labels_url":"https://api.github.com/repos/openshift/origin/issues/4390/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/4390/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/4390/events","html_url":"https://github.com/openshift/origin/issues/4390","id":103443710,"number":4390,"title":"origin-custom-docker-builder doesn't work if docker version is different","user":{"login":"nak3","id":2138339,"avatar_url":"https://avatars.githubusercontent.com/u/2138339?v=3","gravatar_id":"","url":"https://api.github.com/users/nak3","html_url":"https://github.com/nak3","followers_url":"https://api.github.com/users/nak3/followers","following_url":"https://api.github.com/users/nak3/following{/other_user}","gists_url":"https://api.github.com/users/nak3/gists{/gist_id}","starred_url":"https://api.github.com/users/nak3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nak3/subscriptions","organizations_url":"https://api.github.com/users/nak3/orgs","repos_url":"https://api.github.com/users/nak3/repos","events_url":"https://api.github.com/users/nak3/events{/privacy}","received_events_url":"https://api.github.com/users/nak3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-08-27T07:12:28Z","updated_at":"2015-09-04T14:35:16Z","closed_at":null,"body":"Env:\r\n---\r\n\r\n~~~\r\n$ openshift version\r\nopenshift v1.0.5-56-gd116340\r\nkubernetes v1.1.0-alpha.0-1605-g44c91b1\r\n~~~\r\n\r\n~~~\r\n$ docker version\r\nClient version: 1.6.2.fc21\r\nClient API version: 1.18\r\nGo version (client): go1.4.2\r\nGit commit (client): c3ca5bb/1.6.2\r\nOS/Arch (client): linux/amd64\r\nServer version: 1.6.2.fc21\r\nServer API version: 1.18\r\nGo version (server): go1.4.2\r\nGit commit (server): c3ca5bb/1.6.2\r\nOS/Arch (server): linux/amd64\r\n~~~~\r\nNOTE: This docker version is openshift host system's.\r\n\r\nIssue:\r\n---\r\n* When we use differnet version between the docker client(inside origin-custom-docker-builder) and server(openshift running system), we can't build with origin-custom-docker-builder.\r\n* As a workaround, we can modify `openshift/origin-base` of Dockerfile and rebuild it, but it is just temporary solution. (Because we need to keep same docker version of `openshift/origin-base`) Are there any way to avoid/fix this issue?\r\n\r\nReproduce steps:\r\n---\r\n\r\n* Step-1. Running docker 1.6 (1.6 has the Server API versoin as 1.18)\r\n\r\n~~~\r\n$ docker version |grep \"Server API\"\r\nServer API version: 1.18\r\n~~~~\r\n\r\n* Step-2. Start openshift origin\r\n\r\n* Step-3. Create template which has in `$ORIGIN/examples/sample-app/application-template-custombuild.json`\r\n\r\n~~~\r\noc create -f examples/sample-app/application-template-custombuild.json\r\n~~~\r\n\r\n* Step-4. Create application\r\n\r\n~~~\r\noc new-app --template=ruby-helloworld-sample\r\n~~~\r\n\r\n* Step-5. Check the build-log\r\n\r\n~~~\r\n$ oc build-logs ruby-sample-build-1\r\nSending build context to Docker daemon 79.87 kB\r\nSending build context to Docker daemon \r\nError response from daemon: client and server don't have same version (client : 1.19, server: 1.18)\r\nError response from daemon: client and server don't have same version (client : 1.19, server: 1.18)\r\n\r\n$ oc get build\r\nNAME                  TYPE      STATUS     POD\r\nruby-sample-build-1   Custom    Failed     ruby-sample-build-1-build\r\n~~~"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/137751958","html_url":"https://github.com/openshift/origin/issues/4390#issuecomment-137751958","issue_url":"https://api.github.com/repos/openshift/origin/issues/4390","id":137751958,"user":{"login":"smarterclayton","id":1163175,"avatar_url":"https://avatars.githubusercontent.com/u/1163175?v=3","gravatar_id":"","url":"https://api.github.com/users/smarterclayton","html_url":"https://github.com/smarterclayton","followers_url":"https://api.github.com/users/smarterclayton/followers","following_url":"https://api.github.com/users/smarterclayton/following{/other_user}","gists_url":"https://api.github.com/users/smarterclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/smarterclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarterclayton/subscriptions","organizations_url":"https://api.github.com/users/smarterclayton/orgs","repos_url":"https://api.github.com/users/smarterclayton/repos","events_url":"https://api.github.com/users/smarterclayton/events{/privacy}","received_events_url":"https://api.github.com/users/smarterclayton/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T14:35:16Z","updated_at":"2015-09-04T14:35:16Z","body":"Isn't the client the thing we need to patch?  After all, doesn't this mean\ncustom builders won't work if Openshift isn't running on our patched\ndocker?  OpenShift has to run on bone stock Docker.\n\nOn Sep 3, 2015, at 10:22 AM, Jordan Liggitt <notifications@github.com>\nwrote:\n\nThe problem is actually with docker 1.8 using a new method that is not\nsupported by older registries... the client should really be more\nbackwards-compatible, but we're seeing if we can patch in support for the\nnew method the 1.8 client expects\n\n—\nReply to this email directly or view it on GitHub\n<https://github.com/openshift/origin/issues/4390#issuecomment-137464555>.\n"}}