Skip to content

when --index is not set select first service container#10763

Merged
glours merged 1 commit intodocker:v2from
ndeloof:exec_index
Jul 7, 2023
Merged

when --index is not set select first service container#10763
glours merged 1 commit intodocker:v2from
ndeloof:exec_index

Conversation

@ndeloof
Copy link
Copy Markdown
Contributor

@ndeloof ndeloof commented Jul 3, 2023

What I did
select replica with lowest container number (might not be "1") when --index has not been set by user.

Also use getSpecifiedContainer for Port to avoid duplicated logic for same feature

Related issue
fixes #10761

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@ndeloof ndeloof force-pushed the exec_index branch 2 times, most recently from eb03e2f to 2c3bec5 Compare July 3, 2023 10:02
@milas milas requested review from a team, StefanScherer, glours, laurazard, milas, nicksieger and ulyssessouza and removed request for a team July 6, 2023 19:02
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Copy link
Copy Markdown
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@glours glours merged commit e90df62 into docker:v2 Jul 7, 2023
@ndeloof ndeloof deleted the exec_index branch July 7, 2023 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] service "[service name]" is not running container #1

3 participants