十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
小编给大家分享一下CentOS6.4如何配置docker remote api,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!
公司主营业务:网站制作、做网站、移动网站开发等业务。帮助企业客户真正实现互联网宣传,提高企业的竞争能力。创新互联是一支青春激扬、勤奋敬业、活力青春激扬、勤奋敬业、活力澎湃、和谐高效的团队。公司秉承以“开放、自由、严谨、自律”为核心的企业文化,感谢他们对我们的高要求,感谢他们从不同领域给我们带来的挑战,让我们激情的团队有机会用头脑与智慧不断的给客户带来惊喜。创新互联推出黑山免费做网站回馈大家。
我的docker版本
# docker version Client: Version: 1.9.1 API version: 1.21 Go version: go1.4.3 Git commit: a34a1d5 Built: Fri Nov 20 17:56:04 UTC 2015 OS/Arch: linux/amd64 Server: Version: 1.9.1 API version: 1.21 Go version: go1.4.3 Git commit: a34a1d5 Built: Fri Nov 20 17:56:04 UTC 2015 OS/Arch: linux/amd64
编辑文件:
vim /etc/sysconfig/docker 加入 other_args="-H tcp://0.0.0.0:5555 -H unix:///var/run/docker.sock"
访问成功:
# curl http://192.168.133.128:5555/containers/json [{"Id":"24548c4b6ea7411c3e45c2bf33691a60b8ba35de4b1f01719aa70014a9d1601b","Names":["/shipyard-rethinkdb"],"Image":"shipyard/rethinkdb","ImageID":"01d0c7f830abee950e943860d496e5369319e509c560221f22076ec76b9ba64d","Command":"/usr/bin/rethinkdb --bind all","Created":1467885825,"Ports":[{"IP":"0.0.0.0","PrivatePort":29015,"PublicPort":32768,"Type":"tcp"},{"IP":"0.0.0.0","PrivatePort":28015,"PublicPort":32769,"Type":"tcp"},{"IP":"0.0.0.0","PrivatePort":8080,"PublicPort":32770,"Type":"tcp"}],"Labels":{},"Status":"Up 14 minutes","HostConfig":{"NetworkMode":"default"}},{"Id":"714dec2d3c2fd55c0a33dc7978668738f1ae0a8540433825e3d382ba1cf3b377","Names":["/shipyard-rethinkdb-data"],"Image":"shipyard/rethinkdb","ImageID":"01d0c7f830abee950e943860d496e5369319e509c560221f22076ec76b9ba64d","Command":"/bin/bash -l","Created":1467885824,"Ports":[{"PrivatePort":29015,"Type":"tcp"},{"PrivatePort":28015,"Type":"tcp"},{"PrivatePort":8080,"Type":"tcp"}],"Labels":{},"Status":"Up 14 minutes","HostConfig":{"NetworkMode":"default"}}]
看完了这篇文章,相信你对“CentOS6.4如何配置docker remote api”有了一定的了解,如果想了解更多相关知识,欢迎关注创新互联行业资讯频道,感谢各位的阅读!