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

setting DOCKER_HOST in bash startup file (.bash_profile) #14

Open
jayceekay opened this issue Jun 8, 2015 · 0 comments
Open

setting DOCKER_HOST in bash startup file (.bash_profile) #14

jayceekay opened this issue Jun 8, 2015 · 0 comments

Comments

@jayceekay
Copy link

Since running the export command in the shell will only set the environment variable temporarily, you > should follow the process on your OS to make it permanent. On a Mac, add the following line to the > ~/.bash_profile:

export DOCKER_HOST=tcp://$(boot2docker ip 2>/dev/null):2375

wouldn't this only work via .bash_profile if the shells were launched after boot2docker init and boot2docker up were run?

edit: referring to this bit: export DOCKER_HOST=tcp://$(boot2docker ip 2>/dev/null):2375 in this section

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

1 participant