[GH-ISSUE #847] Selecting a container in the "View Docker Containers" modal does not apply the port #6460

Closed
opened 2026-04-25 15:20:55 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @absynth42 on GitHub (Jun 5, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/847

When defining a resource via the new Docker socket functionality and opening the "View Docker Containers" modal, you can either click the port(s) or the orange "select" button.

When clicking one of the exposed ports, the IP address and port number are applied to the resource definition correctly.

However, when clicking "select", only the IP address is applied. I would expect that the port is also applied, at least if there's no ambiguity (i.e. the container only exposes one port).

Originally created by @absynth42 on GitHub (Jun 5, 2025). Original GitHub issue: https://github.com/fosrl/pangolin/issues/847 When defining a resource via the new Docker socket functionality and opening the "View Docker Containers" modal, you can either click the port(s) or the orange "select" button. When clicking one of the exposed ports, the IP address and port number are applied to the resource definition correctly. However, when clicking "select", only the IP address is applied. I would expect that the port is also applied, at least if there's no ambiguity (i.e. the container only exposes one port).
GiteaMirror added the stale label 2026-04-25 15:20:55 -05:00
Author
Owner

@miloschwartz commented on GitHub (Jun 5, 2025):

To select a port you need to click the port. THis is because a container can more than one port, so you have to choose which to use. I suppose we could automatically pick the first port though.

<!-- gh-comment-id:2946640359 --> @miloschwartz commented on GitHub (Jun 5, 2025): To select a port you need to click the port. THis is because a container can more than one port, so you have to choose which to use. I suppose we could automatically pick the first port though.
Author
Owner

@absynth42 commented on GitHub (Jun 6, 2025):

In this case, I guess my bug report ist: "The orange select button should be greyed out until one port is selected". Because right now, you can click "select" without doing that and just the IP address is propagated on to the resource definition.

The best workflow would be: Make the user select a port first, then make the "Select" button clickable. Maybe have a tutorial wizard as soon as users first open the modal.

<!-- gh-comment-id:2948238454 --> @absynth42 commented on GitHub (Jun 6, 2025): In this case, I guess my bug report ist: "The orange select button should be greyed out until one port is selected". Because right now, you can click "select" without doing that and just the IP address is propagated on to the resource definition. The best workflow would be: Make the user select a port first, then make the "Select" button clickable. Maybe have a tutorial wizard as soon as users first open the modal.
Author
Owner

@ahmaddxb commented on GitHub (Jun 16, 2025):

When you click the port, it works, but it would be better to use the container name rather than the IP, as this could change.

<!-- gh-comment-id:2976487505 --> @ahmaddxb commented on GitHub (Jun 16, 2025): When you click the port, it works, but it would be better to use the container name rather than the IP, as this could change.
Author
Owner

@github-actions[bot] commented on GitHub (Jul 1, 2025):

This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.

<!-- gh-comment-id:3021270215 --> @github-actions[bot] commented on GitHub (Jul 1, 2025): This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.
Author
Owner

@github-actions[bot] commented on GitHub (Jul 16, 2025):

This issue has been automatically closed due to inactivity. If you believe this is still relevant, please open a new issue with up-to-date information.

<!-- gh-comment-id:3076343756 --> @github-actions[bot] commented on GitHub (Jul 16, 2025): This issue has been automatically closed due to inactivity. If you believe this is still relevant, please open a new issue with up-to-date information.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#6460