在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中文版發現一個問題,布署容器時不能自定義指定節點,暴露端口不能對應宿主機端口
相關文章:
