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

Use dynamically mapped ssh port number #70

Open
jay7x opened this issue Dec 19, 2022 · 0 comments
Open

Use dynamically mapped ssh port number #70

jay7x opened this issue Dec 19, 2022 · 0 comments

Comments

@jay7x
Copy link
Member

jay7x commented Dec 19, 2022

This is to continue the discussion started in PR #68.

Another thing I wonder about is whether Docker can't do this natively. So create the container and then inspect to find out whatever Docker assigned to it, but I guess we can leave that for another day.

From a brief dig through the docker docs, if you want to use a specific port, you need to map it. I do like the idea of telling it that you want a mapping and letting it decide, but I don't think I've ever seen that done anywhere.

I did few quick experiments with podman w/o explicit ssh port mapping and it was successful. We need to ensure it works ok with real docker and maybe with nerdctl too.

Another question is how to check with Docker Swarm.

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