docker - How do I run 2 environments of SkyDns/Skydock simultaneously? -



docker - How do I run 2 environments of SkyDns/Skydock simultaneously? -

ref: https://github.com/crosbymichael/skydock https://github.com/crosbymichael/skydns

first fired 2 instances.

docker run -d -p 8080:8080 -p 172.17.42.1:53:53/udp --name skydns crosbymichael/skydns -nameserver 8.8.8.8:53 -domain docker docker run -d -v /var/run/docker.sock:/docker.sock --name skydock crosbymichael/skydock -ttl 30 -environment dev -s /docker.sock -domain docker -name skydns

and setup working expected.

now want spawn production environment. time fired skydock container env production follows.

docker run -d -v /var/run/docker.sock:/docker.sock --name skydock-prod crosbymichael/skydock -ttl 30 -environment prod -s /docker.sock -domain docker -name skydns

querying api doesn't show production skydoc.

curl $(docker-ip):8080/skydns/services/

and wondering on how setup production version of skydock.

do have run in separate docker-host? if fire in same docker host, in dns url entry new containers available? have pass flags/variables when fire new containers available in production env?

i don't way create 2 or more skydock instances hear same docker.sock (within single host machine). think conceptually not right. docker containers know nil logical enviroments (production, staging, ...)

i got multihost setup skydns , skydock. run skydns on separate host. each of 2 other servers run single instance of skydock, registers docker containers ips in centralised skydns, containers visible dns name across different physical hosts.

all of working on top of flannel network overlay https://github.com/coreos/flannel (which requires etcd)

docker skydns skydock

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -