{"action":"closed","issue":{"url":"https://api.github.com/repos/k8sp/sextant/issues/158","repository_url":"https://api.github.com/repos/k8sp/sextant","labels_url":"https://api.github.com/repos/k8sp/sextant/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/k8sp/sextant/issues/158/comments","events_url":"https://api.github.com/repos/k8sp/sextant/issues/158/events","html_url":"https://github.com/k8sp/sextant/issues/158","id":175003489,"number":158,"title":"docker版本不一致问题","user":{"login":"zhengbo0","id":14144704,"avatar_url":"https://avatars.githubusercontent.com/u/14144704?v=3","gravatar_id":"","url":"https://api.github.com/users/zhengbo0","html_url":"https://github.com/zhengbo0","followers_url":"https://api.github.com/users/zhengbo0/followers","following_url":"https://api.github.com/users/zhengbo0/following{/other_user}","gists_url":"https://api.github.com/users/zhengbo0/gists{/gist_id}","starred_url":"https://api.github.com/users/zhengbo0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhengbo0/subscriptions","organizations_url":"https://api.github.com/users/zhengbo0/orgs","repos_url":"https://api.github.com/users/zhengbo0/repos","events_url":"https://api.github.com/users/zhengbo0/events{/privacy}","received_events_url":"https://api.github.com/users/zhengbo0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/k8sp/sextant/labels/bug","name":"bug","color":"ee0701"}],"state":"closed","locked":false,"assignee":{"login":"Yancey1989","id":1426912,"avatar_url":"https://avatars.githubusercontent.com/u/1426912?v=3","gravatar_id":"","url":"https://api.github.com/users/Yancey1989","html_url":"https://github.com/Yancey1989","followers_url":"https://api.github.com/users/Yancey1989/followers","following_url":"https://api.github.com/users/Yancey1989/following{/other_user}","gists_url":"https://api.github.com/users/Yancey1989/gists{/gist_id}","starred_url":"https://api.github.com/users/Yancey1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yancey1989/subscriptions","organizations_url":"https://api.github.com/users/Yancey1989/orgs","repos_url":"https://api.github.com/users/Yancey1989/repos","events_url":"https://api.github.com/users/Yancey1989/events{/privacy}","received_events_url":"https://api.github.com/users/Yancey1989/received_events","type":"User","site_admin":false},"assignees":[{"login":"Yancey1989","id":1426912,"avatar_url":"https://avatars.githubusercontent.com/u/1426912?v=3","gravatar_id":"","url":"https://api.github.com/users/Yancey1989","html_url":"https://github.com/Yancey1989","followers_url":"https://api.github.com/users/Yancey1989/followers","following_url":"https://api.github.com/users/Yancey1989/following{/other_user}","gists_url":"https://api.github.com/users/Yancey1989/gists{/gist_id}","starred_url":"https://api.github.com/users/Yancey1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yancey1989/subscriptions","organizations_url":"https://api.github.com/users/Yancey1989/orgs","repos_url":"https://api.github.com/users/Yancey1989/repos","events_url":"https://api.github.com/users/Yancey1989/events{/privacy}","received_events_url":"https://api.github.com/users/Yancey1989/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-09-05T06:31:45Z","updated_at":"2016-09-26T00:49:44Z","closed_at":"2016-09-26T00:49:44Z","body":"dokcer logs bootstrapper时发现如下错误日志：\r\n```\r\ntime=\"2016-09-05T04:03:43Z\" level=info msg=\"Starting upload purge in 10m0s\" go.version=go1.7 instance.id=f82d738d-3a21-4c56-bc27-44864b1b8a4c version=v2.5.0-rc.1-119-g49c1a62 \r\ntime=\"2016-09-05T04:03:43Z\" level=info msg=\"using inmemory blob descriptor cache\" go.version=go1.7 instance.id=f82d738d-3a21-4c56-bc27-44864b1b8a4c version=v2.5.0-rc.1-119-g49c1a62 \r\ntime=\"2016-09-05T04:03:43Z\" level=info msg=\"listening on [::]:5000\" go.version=go1.7 instance.id=f82d738d-3a21-4c56-bc27-44864b1b8a4c version=v2.5.0-rc.1-119-g49c1a62 \r\nError response from daemon: client is newer than server (client API version: 1.23, server API version: 1.22)\r\nError response from daemon: client is newer than server (client API version: 1.23, server API version: 1.22)\r\nError response from daemon: client is newer than server (client API version: 1.23, server API version: 1.22)\r\nError response from daemon: client is newer than server (client API version: 1.23, server API version: 1.22)\r\nError response from daemon: client is newer than server (client API version: 1.23, server API version: 1.22)\r\nError response from daemon: client is newer than server (client API version: 1.23, server API version: 1.22)\r\nError response from daemon: client is newer than server (client API version: 1.23, server API version: 1.22)\r\nError response from daemon: client is newer than server (client API version: 1.23, server API version: 1.22)\r\nError response from daemon: client is newer than server (client API version: 1.23, server API version: 1.22)\r\n```\r\n并且发现 start.sh脚本没有正确执行，镜像并没有上传到registry\r\n```\r\n# push k8s images to registry from bsroot\r\ndocker load < /bsroot/hyperkube-amd64_v1.2.0.tar\r\ndocker load < /bsroot/pause_2.0.tar\r\ndocker load < /bsroot/flannel_0.5.5.tar\r\ndocker tag typhoon1986/hyperkube-amd64:v1.2.0 $BOOTATRAPPER_DOMAIN:5000/hyperkube-amd64:v1.2.0\r\ndocker tag typhoon1986/pause:2.0 $BOOTATRAPPER_DOMAIN:5000/pause:2.0\r\ndocker tag typhoon1986/flannel:0.5.5 $BOOTATRAPPER_DOMAIN:5000/flannel:0.5.5\r\ndocker push $BOOTATRAPPER_DOMAIN:5000/hyperkube-amd64:v1.2.0\r\ndocker push $BOOTATRAPPER_DOMAIN:5000/pause:2.0\r\ndocker push $BOOTATRAPPER_DOMAIN:5000/flannel:0.5.5\r\n\r\n```\r\n解决办法：\r\n在coreos执行 `docker version`，发现coreos　docker api版本1.22\r\n```\r\nClient:\r\n Version:      1.10.3\r\n API version:  1.22\r\n Go version:   go1.5.4\r\n Git commit:   3cd164c\r\n Built:        \r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.10.3\r\n API version:  1.22\r\n Go version:   go1.5.4\r\n Git commit:   3cd164c\r\n Built:        \r\n OS/Arch:      linux/amd64\r\n```\r\n而在Dockerfile里面执行下面命令时，默认安装docker比coreos自带的docker版本新\r\n```\r\napk add --no-cache make git dnsmasq openssl docker && \\\r\n```\r\n修改Dockerfile，添加如何参数,　指定docker api的版本为1.22,可以解决版本不一致的问题\r\n```\r\nENV DOCKER_API_VERSION=1.22\r\n```\r\n\r\n"}}
{"actor":{"display_login":"Yancey1989"}}