This repository was archived by the owner on Feb 27, 2018. It is now read-only.

Description
It's very useful to be able to get the boot2docker VM's IP and use it in scripts (to access docker containers that expose services on the docker host), and though there are two ways to do it now, both are convoluted and fickle:
- From $DOCKER_HOST:
% DOCKER_IP=echo $DOCKER_HOST | cut -d: -f2 | cut -c3-
- From
boot2docker ip
% boot2docker ip
The VM's Host only interface IP address is: 192.168.59.103
This seems like a common use that that could be made much easier:
- Add a $DOCKER_IP env variable that contains the IP
- Make
boot2docker ip just output the IP address