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

Allow callers to replace the ContainerPrefix #3676

Merged
merged 1 commit into from
Dec 21, 2021

Conversation

rhatdan
Copy link
Member

@rhatdan rhatdan commented Dec 14, 2021

This idea of this PR is to allow Podman to add a Podman
prefix to containers. This would allow it to keep track
of containers created by Podman and make it easier to remove
them when it wants to remove all.

Signed-off-by: Daniel J Walsh [email protected]

What type of PR is this?

/kind api-change
/kind bug
/kind cleanup
/kind deprecation
/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake
/kind other

What this PR does / why we need it:

How to verify it

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

s/Prefix/Suffix/ in the commit message.

@vrothberg
Copy link
Member

CI is barking due to missing tests. Would it make sense to expose this as a (hidden) flag in buildah build to make sure we catch regressions early?

@flouthoc
Copy link
Collaborator

Could you also add related issue to this PR. I am unable to check why do we need prefix in container names.
Since user could only remove podman containers.

@flouthoc
Copy link
Collaborator

flouthoc commented Dec 15, 2021

Could you also add related issue to this PR. I am unable to check why do we need prefix in container names.
Since user could only remove podman containers.

Nevermind I think I got the issue containers/podman#12353 (comment) . PR has intention to make podman smart about the build container it generates via buildah so leaked containers could be cleaned up.

@rhatdan rhatdan changed the title [WIP] Allow callers to replace the ContainerPrefix Allow callers to replace the ContainerPrefix Dec 16, 2021
@rhatdan
Copy link
Member Author

rhatdan commented Dec 16, 2021

@flouthoc correct, if we suffix the containers with _internal_podman, then we know we can blow them away on a rm -f --all.

This idea of this PR is to allow Podman to add a Podman
prefix to containers. This would allow it to keep track
of containers created by Podman and make it easier to remove
them when it wants to remove all.

Signed-off-by: Daniel J Walsh <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 21, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Member

@ashley-cui ashley-cui left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants