在docker中使用shipyard的Web-UI添加容器不成功...求大神
問(wèn)題描述
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的時(shí)候,有人說(shuō)要加- -tls,可我一下面這方式加了,還是不行..不知道是不是我加錯(cuò)地方了,還是哪配置錯(cuò)誤,請(qǐng)大神幫忙...
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
這是對(duì)docker進(jìn)行TCP的綁定,本人實(shí)在不確定這樣綁定是否可以...希望請(qǐng)大神能幫忙查找查找錯(cuò)誤;
問(wèn)題: 1、我在shipyard中添加容器不成功....出現(xiàn)如下錯(cuò)誤:FATA[0000] error running container: Get http://192.168.59.103:2376/v1.10/containers/json?all=0: malformed HTTP response 'x15x03x01x00x02x02' 2、我在訪問(wèn)shipyard的Web-UI的時(shí)候,速度極慢...這是不是被墻了的原因????
問(wèn)題解答
回答1:try with: --tls=true
回答2:shipyard中文版發(fā)現(xiàn)一個(gè)問(wèn)題,布署容器時(shí)不能自定義指定節(jié)點(diǎn),暴露端口不能對(duì)應(yīng)宿主機(jī)端口
相關(guān)文章:
1. docker - 如何修改運(yùn)行中容器的配置2. 關(guān)于docker下的nginx壓力測(cè)試3. 為什么我ping不通我的docker容器呢???4. nignx - docker內(nèi)nginx 80端口被占用5. Span標(biāo)簽6. redis啟動(dòng)有問(wèn)題?7. angular.js - webpack build后的angularjs路由跳轉(zhuǎn)問(wèn)題8. SessionNotFoundException:會(huì)話ID為null。調(diào)用quit()后使用WebDriver嗎?(硒)9. java - Spring MVC無(wú)法識(shí)別Controller導(dǎo)致返回的結(jié)果是404?10. java - Collections類(lèi)里的swap函數(shù),源碼為什么要新定義一個(gè)final的List型變量l指向傳入的list?
