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 docker environment setup #2

Open
2 tasks
at15 opened this issue Sep 4, 2015 · 4 comments
Open
2 tasks

Add docker environment setup #2

at15 opened this issue Sep 4, 2015 · 4 comments

Comments

@at15
Copy link
Owner

at15 commented Sep 4, 2015

  • install docker
  • add doc
@at15
Copy link
Owner Author

at15 commented Sep 4, 2015

After following this guide https://www.docker.com/toolbox I can only use docker in the docker quick terminal, while in other terminal, I cant run docker command...

@at15
Copy link
Owner Author

at15 commented Sep 4, 2015

and here is how to use it from own shell https://docs.docker.com/installation/mac/#from-your-shell

@at15
Copy link
Owner Author

at15 commented Sep 4, 2015

The right guide is

  1. follow the guide to install the docker toolbox. It won't conflict with the virtual box you installed using brew cask in TODO:link
  2. click the Docker Quickstart Terminal in Application, wait for it to create the vm and then run docker run hello-world to make sure the quickstart terminal is working. Then close this terminal. (This would be mac's default terminal, not iterm, if you didn't configure TODO: how to replace default terminal with iterm
  3. open iterm. run docker-machine ls, you should see the default machine created by the quickstart terminal. run docker-machine env default to show the environment config for the default vm.
  4. run eval "$(dockermachine env default)" to config current shell, now it is working
  5. TODO: add this to your .zshrc or .zsh ? TODO: the guide

@at15
Copy link
Owner Author

at15 commented Sep 9, 2015

Still got a problem, after reboot the system, the default vm for docker is not running when start up, so need to run docker-machine start default to start the vm, then open a new tab, and docker command would be avaliable

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