Skip to content

Fix multi-arch container republish with Podman failing due to name collision. - #56376

Merged
mthalman merged 1 commit into
dotnet:mainfrom
tmds:fix-podman-multiarch-republish
Sep 22, 2026
Merged

mthalman merged 1 commit into
dotnet:mainfrom
tmds:fix-podman-multiarch-republish

Conversation

@tmds

@tmds tmds commented Sep 22, 2026

Copy link
Copy Markdown
Member

podman rmi does not remove manifest lists — it either removes a member image or errors with "tag not known", leaving the manifest intact. Add podman manifest rm before the existing podman rmi to handle both manifest lists and regular images when cleaning up before republishing.

@mthalman @baronfel ptal.

…llision.

`podman rmi` does not remove manifest lists — it either removes a member
image or errors with "tag not known", leaving the manifest intact. Add
`podman manifest rm` before the existing `podman rmi` to handle both
manifest lists and regular images when cleaning up before republishing.
@tmds
tmds requested a review from a team as a code owner September 22, 2026 12:55
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

// Second publish to the same image name should also succeed
CommandResult secondResult = new DotnetCommand(Log, publishArgs)
.WithWorkingDirectory(newProjectDir.FullName)
.Execute();

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This second publish fails without the change in ContainerRuntimes.cs.

@mthalman
mthalman merged commit 2820e0c into dotnet:main Sep 22, 2026
27 checks passed
@tmds

tmds commented Sep 22, 2026

Copy link
Copy Markdown
Member Author

@mthalman @baronfel can this be backported to 11.0?

@mthalman

Copy link
Copy Markdown
Member

/backport to release/11.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/11.0 (link to workflow run)

@github-actions

Copy link
Copy Markdown
Contributor

@mthalman an error occurred while backporting to release/11.0. See the workflow output for details.

@mthalman

Copy link
Copy Markdown
Member

/backport to release/11.0.1xx

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/11.0.1xx (link to workflow run)

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.

2 participants