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

Question about Skydock Setup #47

Closed
brandonparsons opened this issue Apr 1, 2014 · 2 comments
Closed

Question about Skydock Setup #47

brandonparsons opened this issue Apr 1, 2014 · 2 comments

Comments

@brandonparsons
Copy link

Hi there,

I'm new to docker (and skydock obviously) and trying to get set up. In the README, you state the following:

First get the IP address of the docker0 bridge. We will need to know the IP of the bridge so that we can tell skydns to bind it's nameserver to that IP.

Is there a simple way to get the IP Address of the docker0 bridge? I can obviously spin up container and do ifconfig, but wondering if docker had a command to get this information out so that in an upstart script it would be easy to run the skydns container on the right IP.

Thanks!

@asbjornenge
Copy link
Contributor

The docker0 is an interface on your host. So just do a ifconfig on the machine that is running docker and you should see the docker0 interface.

@brandonparsons
Copy link
Author

Ah gotcha. Googled for the following to grab the IP for an upstart script or whatever:

ifconfig docker0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'

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

2 participants