Link: https://github.com/crosbymichael/skydock
https://github.com/crosbymichael/skydns
First I activated these two 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 this setting works as expected.
Now I want to create a different production environment. This time I just shot at another skydock container with env production as 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
The api request does not show production skydoc.
curl $(docker-ip):8080/skydns/services/
And now I'm wondering how to set up the production version of skydock.
Do I need to run a separate docker node? If I run the same docker node, which will display the new DNS server URL? Do I have to pass some flags / variables when I start new containers that will be available in the production program?