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

Is there a way to specify port bindings? #199

Open
jolyons123 opened this issue Jul 16, 2024 · 4 comments
Open

Is there a way to specify port bindings? #199

jolyons123 opened this issue Jul 16, 2024 · 4 comments

Comments

@jolyons123
Copy link

According to this gist, enroot automatically exposes the port specified with the EXPOSE statement in the docker file to the same port on localhost. Is there a way to customize this? What if multiple containers try to expose the same port?

Our use-case is that we want to have interactive debugging capabilities (ssh connection for vscode/pycharm or expose a jupyter server) for our slurm gpu jobs.

@krono
Copy link
Contributor

krono commented Jul 16, 2024

Enroot does not expose anything and does not use Dockerfiles at all.
Whatever your programs listen to in the container, they listen to outside of the container.
There is no treatment of network ports.

@jolyons123
Copy link
Author

Thank you!

@tomasruizt
Copy link

@jolyons123 Were you able to get interactive debugging with vscode working on slurm gpu jobs? I've tried adapting the gist you linked to our cluster (LRZ AI Systems in Germany), but it fails so far.

@krono
Copy link
Contributor

krono commented Nov 14, 2024

Maybe a comment on the gist is more fruitful?

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

3 participants