Add podman system prune and info commands#2252
Add podman system prune and info commands#2252openshift-merge-robot merged 2 commits intocontainers:masterfrom
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
cmd/podman/system_prune.go
Outdated
There was a problem hiding this comment.
bonus points for using the adapter.Runtime!
|
would really like some tests if that is possible |
cmd/podman/system_prune.go
Outdated
There was a problem hiding this comment.
I don't think docker system prune actually prunes volumes. The description says exclusively containers, images, networks
There was a problem hiding this comment.
b5c0f01 to
63017fd
Compare
|
/test images |
|
@vrothberg @mheon @baude @umohnani8 @giuseppe @TomSweeneyRedHat PTAL |
cmd/podman/system_prune.go
Outdated
There was a problem hiding this comment.
volumePrune should print the ids that it is removing.
|
/test images |
|
LGTM |
vrothberg
left a comment
There was a problem hiding this comment.
Nice PR! Just some minor comments regarding --force and making the manpage and help message a bit clearer.
cmd/podman/system_prune.go
Outdated
There was a problem hiding this comment.
s/remove/Remove/ for consistency
There was a problem hiding this comment.
Fixed these all in the second patch.
cmd/podman/system_prune.go
Outdated
There was a problem hiding this comment.
Data is correct. systems was incorrect.
cmd/podman/system_prune.go
Outdated
There was a problem hiding this comment.
Can we add - all volumes if the flag is set?
cmd/podman/system_prune.go
Outdated
There was a problem hiding this comment.
I am not sure if we should use --force here as it should only impact the cli prompt.
cmd/podman/system_prune.go
Outdated
There was a problem hiding this comment.
s/err1/err/PruneImages/ ... just to make the code easier to brain-parse
There was a problem hiding this comment.
Ok I changed to use lasterr to make it clearer.
docs/podman-system-prune.1.md
Outdated
docs/podman-system-prune.1.md
Outdated
There was a problem hiding this comment.
Can we define what we mean by systems (i.e., containers, images, build cache)? Same applies to the help message. Currently, it's hard to figure out which data is removed without actually running the command.
There was a problem hiding this comment.
This is a global replace issue. System should be Images
Fixed
bd4c286 to
fb8a731
Compare
|
LGTM |
cmd/podman/pod_unpause.go
Outdated
docs/podman-info.1.md
Outdated
There was a problem hiding this comment.
Should this be podman-info?
docs/podman-info.1.md
Outdated
There was a problem hiding this comment.
Should this have it's own page, even if it's mostly a cut/paste job?
There was a problem hiding this comment.
No they are identical, This is what we do with all of the podman container commands
podman-container-ps -> podman-ps.
for example. I think we should add the alternate names to the linked images though.
docs/podman-system.1.md
Outdated
There was a problem hiding this comment.
I don't think the podman-system-info.1.md exists and I don't see it in this PR.
docs/podman.1.md
Outdated
There was a problem hiding this comment.
I think you should add podman-system-info and podman-system-prune here as well.
There was a problem hiding this comment.
We don't add any subcommands on the main man page?
podman container prune is not there so
TomSweeneyRedHat
left a comment
There was a problem hiding this comment.
Any plans to implement podman system df or podman system events to match Docker? Even if they're no-ops?
|
Yes we need to add df and events, althoug podman-system-events is just another way of calling podman events, which also does not exist yet. |
|
☔ The latest upstream changes (presumably #2227) made this pull request unmergeable. Please resolve the merge conflicts. |
We are missing the equivalence of the docker system commands This patch set adds `podman system prune` and `podman system info` Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
We have no consistancy in out option usages and descritions on whether or not the first letter should be capatalized. This patch forces them all to be capatilized. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
|
/retest |
|
/test validate |
|
/lgtm |
We are missing the equivalence of the docker system commands
This patch set adds
podman system pruneSigned-off-by: Daniel J Walsh dwalsh@redhat.com