I’m running jupyter hub within docker. I have mapped two ports to the host machine. One for jupyter and one where I wish to serve the panel app on. Following is my docker-compose.yml file
The docker start up perfectly well but when I go to sere the Panel dashboard application on port 20011. It says its already in use. The jupyterhub server is correctly mapped to port 20010. Here’s the error message:
Cannot start Bokeh server, port 8001 is already in use
You mean when you go “see” the panel dashboard? This seems to be something appliation specific. Normally you would get the error message when you start the container, not when you try to access a port. And since the port in the error message is an internal port which is inside the container, it couldn’t have an already used port.
I recommend searching for “cannot start bokeh server” on the internet so you can find similar issues like this
I don’t know. I never run that command in Jupyter Hub. I guess you already ran it once and the service is still running. Or there is another internal service using that port. Containers have network isolation, so if the command says the port is used, it is used inside the container. Unless of course you use the host network or the network of another container (shared network namespace like in Kubernetes pods) , but that is not set in your shared compose file.
I was able to get this to work. I specified three ports. The two ports were being used by node and third was available for me to serve my application from within docker