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

Use direct container name lookup instead of link #51

Merged
merged 1 commit into from
Apr 3, 2014
Merged

Use direct container name lookup instead of link #51

merged 1 commit into from
Apr 3, 2014

Conversation

blalor
Copy link
Contributor

@blalor blalor commented Apr 1, 2014

Add "-name" option to skydock to look up the skydns container by name.
This avoids having to manage Docker container links.

Docker's --link is still supported.

Add "-name" option to skydock to look up the skydns container by name.
This avoids having to manage Docker container links.

Docker's --link is still supported.
@@ -40,6 +41,7 @@ var (
func init() {
flag.StringVar(&pathToSocket, "s", "/var/run/docker.sock", "path to the docker unix socket")
flag.StringVar(&skydnsUrl, "skydns", "", "url to the skydns url")
flag.StringVar(&skydnsContainerName, "name", "", "name of skydns container")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should default to skydns instead of an empty string

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we do that, it means the old behavior will change. I'm fine with that, but are you? :-)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, nevermind. we will be nice for now ;)

@blalor blalor mentioned this pull request Apr 1, 2014
@inthecloud247
Copy link

@crosbymichael are there any patterns to make linking easier or more automated? maybe being able to specify a link in the dockerfile itself could help?

@crosbymichael
Copy link
Owner

LGTM

@crosbymichael crosbymichael merged commit fc219d4 into crosbymichael:master Apr 3, 2014
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

Successfully merging this pull request may close these issues.

None yet

3 participants