Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I run 2 environments simultaneously? #78

Open
millisami opened this issue Oct 11, 2014 · 1 comment
Open

How do I run 2 environments simultaneously? #78

millisami opened this issue Oct 11, 2014 · 1 comment

Comments

@millisami
Copy link

First I fired up those 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 setup is working as expected.

Now I want to spawn another production environment. This time I only fired another skydock container with the 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

Querying the api doesn't show the production skydoc.

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

And now I am wondering on how to setup the production version of skydock.

Do I have to run in separate docker-host?
If I fire up in the same docker host, in which DNS url entry will the new containers be available?
Do I have to pass some flags/variables when I fire new containers to be available in the production env?

@millisami
Copy link
Author

Any pointers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant