jenkinsci / docker-plugin

Jenkins cloud plugin that uses Docker
https://plugins.jenkins.io/docker-plugin/
MIT License
487 stars 322 forks source link

Port mapping example is sorely needed #1005

Open flybd5 opened 11 months ago

flybd5 commented 11 months ago

Describe your use-case which is not covered by existing documentation.

No examples are shown to explain how to define port mappings. On the command line there are clear examples of -p src:dest but there is no guidance in the plug as to how to enter them in the container details. Is it src:dest and separate with spaces, commas, with or without the -p or what?

Reference any relevant documentation, other materials or issues/pull requests that can be used for inspiration.

No response

namuller30 commented 10 months ago

I am also running into this issue. I want to specify a port range. IE 7000-8000:7000-8000 but am really struggling here

namuller30 commented 10 months ago

@flybd5 FYI I was able to get this working by putting them in one to one mapped with spaces separating image

flybd5 commented 10 months ago

You're kidding. That's masochistic. 🤣

On Thu, Sep 28, 2023 at 11:41 AM namuller30 @.***> wrote:

@flybd5 https://github.com/flybd5 FYI I was able to get this working by putting them in one to one mapped with spaces separating [image: image] https://user-images.githubusercontent.com/37352817/271339607-5001f4fa-add1-4c10-ac73-e4e7901012bb.png

— Reply to this email directly, view it on GitHub https://github.com/jenkinsci/docker-plugin/issues/1005#issuecomment-1739567660, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSKAA7UE5PHI3EMIBFK3ALX4WLBLANCNFSM6AAAAAA3VWWVWI . You are receiving this because you were mentioned.Message ID: @.***>