Last active
December 13, 2016 09:37
-
-
Save geoder101/26799fbdf17b4cb82c3fd53958a7f939 to your computer and use it in GitHub Desktop.
bashrc :: docker-machine start, env & eval
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DOCKER_MACHINE_ID=default | |
if [ ! -f /tmp/docker.env ]; then | |
docker-machine start $DOCKER_MACHINE_ID &> /dev/null | |
docker-machine env $DOCKER_MACHINE_ID 1> /tmp/docker.env | |
fi | |
if [ -f /tmp/docker.env ]; then | |
source /tmp/docker.env | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment