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

The tool is working only in one instance #18

Closed
pushkarbajaj9 opened this issue Jun 13, 2019 · 2 comments
Closed

The tool is working only in one instance #18

pushkarbajaj9 opened this issue Jun 13, 2019 · 2 comments

Comments

@pushkarbajaj9
Copy link

The tool if run by the given docker run command in the documentation runs only one instance of the tool.That is if the tool is open in any machine or any one browser of the machine, the other machine or browser cannot open the tool and is encountered with an error 1000:Target Closed. Is there any work around to make it multi user?

@lhhunghimself
Copy link
Contributor

You can start multiple instances - however they must expose different ports on your host machine.
For example:

docker run --rm -p 6080:6080 -v $pwd/:/data -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/.X11-unix:/tmp/.X11-unix --privileged --group-add root biodepot/bwb

docker run --rm -p 8080:6080 -v $pwd/:/data -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/.X11-unix:/tmp/.X11-unix --privileged --group-add root biodepot/bwb

starts two instances of Bwb, that you can connect to on using localhost:6080 and localhost:8080.

Currently, it is not possible for two browsers to connect to the same instance of Bwb. It is possible to add this feature. It would require changing the nginx config to manage multiple users and launching multiple instances of the backend but I don't see much utility in this compared to launching two separate instances.

If you want a tool inside Bwb to interact multiple users - this should be possible since Bwb does export X11 GUIs from tools to the user, but you would have to open another port and manage the traffic yourself and allow Docker access to all your ports with a --net=host flag when starting Bwb.

Hong

@pushkarbajaj9
Copy link
Author

Thanks Hong for the quick reply. I did try to expose the tool on different ports to run different instances and it does get deployed successfully. I am using majorly jupyter notebook widgets and the issue is that jupyter notebook container is not able to differentiate between the two different instances on different ports. If i have a jupyter notebook already open in 6080 port instance and then try to open jupyter notebook from 8080 port instance, the notebook invoked from 8080 port still opens in the 6080 port.

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