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

Add dvm ip command to output the address of the Vagrant machine #46

Merged
merged 2 commits into from
Oct 11, 2014

Conversation

tmatilai
Copy link
Contributor

@tmatilai tmatilai commented Oct 9, 2014

This adds a helper to print the configured (or default) IP address of the Vagrant VM. Similar to boot2docker ip, except just reads the configuration and doesn't try to connect to the machine itself.

Example use case would be to connect to published container ports, like:

dvm up
docker run -d -p 80:80 my_web_server
curl -i "http://$(dvm ip)/foo"

This adds a helper to print the configured (or default) IP address
of the Vagrant VM. Similar to `boot2docker ip`, except just reads the
configuration and doesn't try to connect to the machine itself.

Example use case would be to connect to published container ports,
like:

    dvm up
    docker run -d -p 80:80 my_web_server
    curl -i "http://$(dvm ip)/foo"
@tmatilai
Copy link
Contributor Author

tmatilai commented Oct 9, 2014

This is kinda related to #10.

@fnichol
Copy link
Owner

fnichol commented Oct 11, 2014

Ah yeah, that's a great idea!

fnichol added a commit that referenced this pull request Oct 11, 2014
Add `dvm ip` command to output the address of the Vagrant machine
@fnichol fnichol merged commit 0aab6e5 into fnichol:master Oct 11, 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.

2 participants