cheap medications premarin 1.25mg tablets estrogen contents, cheap medications buy wellbutrin no rx needed, cheap online buy baclofen online, cheap online order flagyl er pay pal online without prescription, pharmacy cheapest where to buy buy doxycycline online, online cheap medications buy overnight delivery lasix fedex, buy cheap purchase diflucan, cheap online buy neurontin online overnight cod, cheap pharmacy fedex acyclovir overnight without a rx, order cheap what is norvasc, buying cheap buy arimidex free consultation,
首页 > Cloud Computing, Docker & K8S > Zerotodocker

Zerotodocker

2018年8月4日 发表评论 阅读评论

此项目加速评估NetflixOSS,帮助熟悉Spring Cloud Netflix。

启动5个docker容器,分配5个vip地址。

第一次运行
$ docker run -d --name asgard -v `pwd`/Config.groovy.mine:/root/.asgard/Config.groovy netflixoss/asgard:1.5.1
$ docker run -d --name exhibitor netflixoss/exhibitor:1.5.2
$ docker run -d --name eureka -d netflixoss/eureka:1.3.1
$ docker run -d --name hello-netflix-oss --link eureka:eureka netflixoss/hello-netflix-oss:1.0.28
$ docker run -e "origin.zuul.client.DeploymentContextBasedVipAddresses=HELLO-NETFLIX-OSS" -d --name zuul --link eureka:eureka netflixoss/zuul:1.0.28

镜像在本地后的再次运行
$ docker run -it netflixoss/asgard:1.5.1
$ docker run -it netflixoss/exhibitor:1.5.2
$ docker run -it netflixoss/eureka:1.3.1
$ docker run -it netflixoss/hello-netflix-oss:1.0.28
$ docker run -it netflixoss/zuul:1.0.28

Zerotodocker

获得image的信息,如:

$ docker inspect 952ff95f7b15

"Gateway": "172.17.0.1",
"IPAddress": "172.17.0.6",
"NetworkID": "11e33740b6f19160ee203a2654dd20a051a93f28879a7b6ef270d9f08bdba564",

如何从本地机直接访问容器地址。

$ docker network ls
NETWORK ID          NAME                DRIVER              SCOPE
11e33740b6f1        bridge              bridge              local
10388d67aaf7        docker_gwbridge     bridge              local
f04c155e245d        host                host                local
27wc5q8vyzi5        ingress             overlay             swarm
c884f99c18fa        none                null                local

使用Bridge的方式,Four ways to connect a docker container to a local network

Docker subnet: 192.168.65.0/24


分类: Cloud Computing, Docker & K8S 标签:
灰狐会员
欢迎扫码加入我们:灰狐的朋友们
我们关注和讨论的话题有:区块链、人工智能、物联网、编程语言 ...
内容导航



除非注明,开放博客文章均为原创,转载请以超链接形式标明原始出处:开放博客,谢谢。

  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.