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

Fix canonical container name in --dry-run #11425

Merged
merged 1 commit into from Jan 30, 2024

Conversation

jhrotko
Copy link
Contributor

@jhrotko jhrotko commented Jan 30, 2024

What I did
Fix getCanonicalContainerName to strip the prefix "/". Before, we were removing always the first char (/) but in --dry-run this is non-existent. So the fix makes sure we only remove what we intend to.

Related issue

fixes #11402

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

Signed-off-by: jhrotko <joana.hrotko@docker.com>
Copy link
Member

@laurazard laurazard left a comment

Choose a reason for hiding this comment

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

✅ LGTM
(and I wonder if we're missing test coverage for --dry-run features since we didn't catch this)

@ndeloof ndeloof enabled auto-merge (rebase) January 30, 2024 14:01
@ndeloof ndeloof merged commit 0582001 into docker:main Jan 30, 2024
24 checks passed
@milas
Copy link
Member

milas commented Jan 30, 2024

the puppies 😭

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

Successfully merging this pull request may close these issues.

[BUG] Dry run: container names in start(ing) progress entries missing first letter
5 participants