Docker原错误:
by 刘迎光@萤火虫工作室
OpenBI交流群:495266201
MicroService 微服务交流群:217722918
mail: liuyg#liuyingguang.cn
博主首页(防止爬虫):http://blog.liuyingguang.cn
OpenBI问答社区:http://openbi.liuyingguang.cn/
参考文章:http://gliderlabs.com/registrator/latest/user/quickstart/
Consul是强一致性的数据存储,使用gossip形成动态集群。它提供分级键/值存储方式,不仅可以存储数据,而且可以用于注册器件事各种任务,从发送数据改变通知到运行健康检查和自定义命令,具体如何取决于它们的输出
Registrator通过检查容器在线或者停止运行状态自动注册和去注册服务,它目前支持etcd、Consul和SkyDNS 2
# docker run -d -p 8400:8400 -p 8500:8500 -p 8600:53/udp --name node4 gliderlabs/consul-server:0.6 -bootstrap -advertise 192.168.10.138
# curl 192.168.10.138:8500/v1/catalog/services {"consul":[]}
# docker run -d --name=registrator --net=host --volume=/var/run/docker.sock:/tmp/docker.sock gliderlabs/registrator:latest consul://192.168.10.138:8500
# docker run -d -P --name=redis redis
# curl 192.168.10.138:8500/v1/catalog/services {"consul":[],"redis":[]} # curl 192.168.10.138:8500/v1/catalog/service/redis [{"Node":"23dcba46458b","Address":"192.168.10.138","ServiceID":"localhost.localdomain:redis:6379","ServiceName":"redis","ServiceTags":[],"ServiceAddress":"","Servi
源文件:https://github.com/TykTechnologies/tyk-swagger-definitions/blob/master/tyk_gateway_api.yml
swagger: '2.0' info: version: "1.9" title: Gateway REST API paths: /tyk/keys/: get: description: | Gets a list of *key* IDs (will only work with non-hashed installations) parameters: - name: api_id in: query description: Back-end to target required: true type: string format: string - name: x-tyk-authorization in: header description: tyk gateway shared secret required: true type: string format: string responses: 200: description: Successful response schema: type: object properties: keys: type: array items: type: string /tyk/keys/create: post: description: | Create a n
export http_proxy=http://172.17.42.1:8118export https_proxy=$http_proxyexport ftp_proxy=$http_proxyexport rsync_proxy=$http_proxyexport no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"source /etc/profile
by 刘迎光@萤火虫工作室
OpenBI交流群:495266201
MicroService 微服务交流群:217722918
mail: liuyg#liuyingguang.cn
博主首页(==防止爬虫==):http://blog.liuyingguang.cn