在docker中使用shipyard的Web-UI添加容器不成功...求大神
問題描述
root@boot2docker:~# docker versionClient version: 1.3.0Client API version: 1.15Go version (client): go1.3.3Git commit (client): c78088fOS/Arch (client): linux/amd64Server version: 1.3.0Server API version: 1.15Go version (server): go1.3.3Git commit (server): c78088froot@boot2docker:~#
=======================================================
shipyard cli> shipyard run --name centos:latest --cpus 1.0 --memory 256 --type service --hostname=essa.com --domain essa.com --env FOO=bar --label dev --pullFATA[0000] error running container: Get http://192.168.59.103:2376/v1.10/containers/json?all=0: malformed HTTP response 'x15x03x01x00x02x02'
shipyard cli> shipyard containersFATA[0000] error getting containers: Get http://192.168.59.103:2376/v1.10/containers/json?all=1: malformed HTTP response 'x15x03x01x00x02x02'
我Google的時候,有人說要加- -tls,可我一下面這方式加了,還是不行..不知道是不是我加錯地方了,還是哪配置錯誤,請大神幫忙...
root@boot2docker:~# docker --tls exec -ti 2e389efed617 /bin/bash2014/11/10 05:50:44 Post https:///var/run/docker.sock/v1.15/containers/2e389efed617/exec: tls: oversized record received with length 20527 root@boot2docker:~# docker --tls ps2014/11/10 05:52:45 Get https:///var/run/docker.sock/v1.15/containers/json: tls: oversized record received with length 20527
這是對docker進行TCP的綁定,本人實在不確定這樣綁定是否可以...希望請大神能幫忙查找查找錯誤;
問題: 1、我在shipyard中添加容器不成功....出現如下錯誤:FATA[0000] error running container: Get http://192.168.59.103:2376/v1.10/containers/json?all=0: malformed HTTP response 'x15x03x01x00x02x02' 2、我在訪問shipyard的Web-UI的時候,速度極慢...這是不是被墻了的原因????
問題解答
回答1:try with: --tls=true
回答2:shipyard中文版發現一個問題,布署容器時不能自定義指定節點,暴露端口不能對應宿主機端口
相關文章:
1. docker-machine添加一個已有的docker主機問題2. docker images顯示的鏡像過多,狗眼被亮瞎了,怎么辦?3. 關docker hub上有些鏡像的tag被標記““This image has vulnerabilities””4. css - 求推薦適用于vue2的框架 像bootstrap這種類型的5. Span標簽6. SessionNotFoundException:會話ID為null。調用quit()后使用WebDriver嗎?(硒)7. angular.js使用$resource服務把數據存入mongodb的問題。8. css - 關于div自適應問題,大家看圖吧,說不清9. redis啟動有問題?10. java - Collections類里的swap函數,源碼為什么要新定義一個final的List型變量l指向傳入的list?
