Skip to content

Add --replace option to podman artifact add. #27082

@rhatdan

Description

@rhatdan

Feature request description

The --replace option gives users a quick way to create an object without having to do a racy check if the object exists and then removing it, when it wants to create a new object.

Suggest potential solution

Add --replace option to artifact add, which will remove the artifact if it exists before creating it.

Have you considered any alternatives?

Yes checking if it exists and removing it.

Additional context

podman container create --replace exists and is a handy option. podman build will automatically create an new image even if the existing image already existed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueThis issue would be a good issue for a first time contributor to undertake.kind/featureCategorizes issue or PR as related to a new feature.triagedIssue has been triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions