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

localhost refused to connect #65

Closed
craigdsouza opened this issue Oct 31, 2018 · 3 comments
Closed

localhost refused to connect #65

craigdsouza opened this issue Oct 31, 2018 · 3 comments

Comments

@craigdsouza
Copy link

All steps in the installation process until and including 'Build the docker image' were successful. However I'm now running into this issue at the 'run the container' step.

Ran the following command in command prompt
docker run -it --rm -v "//c/Users/Craig D/Code/planet/notebooks/jupyter-notebooks:/home/jovyan/work" -e PL_API_KEY='[MY-API-KEY]' planet-notebooks
did not include the -p 8888:8888 flag mentioned in the README because it was already set when I ran the docker run command originally and running the command again while specifying -p gives the error 'port already allocated'

the snapshot below is what I get ..
image
once I open the localhost URL the page simply says 'site can't be reached - localhost refused to connect' instead of the jupyter lab notebooks I expect to see.

my system is Windows 10 and Docker version is Docker Toolbox, Docker version 18.03.0-ce, build 0520e24302

@craigdsouza
Copy link
Author

after browsing around I realized I have to substitute localhost in the URL with 192.168.99.100 and it works.. not quite sure why though

@jreiberkyle
Copy link
Contributor

There is a way to configure the VM in virtualbox to set the IP of the VM as localhost. I found it with a google search a while back when I ran into the same thing.

@craigdsouza
Copy link
Author

Thanks for the tip!

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

2 participants