-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
container-commit: support --squash
to squash layers into one if users want.
#13314
container-commit: support --squash
to squash layers into one if users want.
#13314
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a quick skim: it looks like some plumbing in the endpoints (including swagger docs) needs to be done
aed2748
to
87f8185
Compare
@vrothberg Thanks :) added to swagger as well. Lets see if tests passes. |
@@ -77,6 +77,7 @@ func commitFlags(cmd *cobra.Command) { | |||
|
|||
flags.BoolVarP(&commitOptions.Pause, "pause", "p", false, "Pause container during commit") | |||
flags.BoolVarP(&commitOptions.Quiet, "quiet", "q", false, "Suppress output") | |||
flags.BoolVarP(&commitOptions.Squash, "squash", "s", false, "squash newly built layers into a single new layer") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Losing my marbles I am, I thought we had this for commit already....
Changes LGTM, test unhappiness does not. |
Allow users to commit containers into a single layer. Usage ```bash podman container commit --squash <name> ``` Signed-off-by: Aditya R <[email protected]>
87f8185
to
fbbcb95
Compare
@containers/podman-maintainers PTAL |
LGTM |
/lgtm |
Allow users to commit containers into a single layer.
Usage
Closes: #12889