summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-10-12 19:32:10 +0200
committerGitHub <noreply@github.com>2021-10-12 19:32:10 +0200
commit214c13da0a3958e001835288488d24f933337519 (patch)
tree6f1d67247500c982fdfb61b833d6a66925000683 /cmd/podman
parent2905bc351b6ba9d1565584cb7dfd07cc2522f5c5 (diff)
parentab8fb3876d25efa2196dbea9d6e07e3ea6493c23 (diff)
downloadpodman-214c13da0a3958e001835288488d24f933337519.tar.gz
podman-214c13da0a3958e001835288488d24f933337519.tar.bz2
podman-214c13da0a3958e001835288488d24f933337519.zip
Merge pull request #11932 from flouthoc/build-prune
builder: Add support for builder prune
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/images/buildx.go11
-rw-r--r--cmd/podman/images/prune.go5
2 files changed, 11 insertions, 5 deletions
diff --git a/cmd/podman/images/buildx.go b/cmd/podman/images/buildx.go
index 5c8e5aaa0..2577a3a74 100644
--- a/cmd/podman/images/buildx.go
+++ b/cmd/podman/images/buildx.go
@@ -14,11 +14,12 @@ var (
// If we are adding new buildx features, we will add them by default
// to podman build.
buildxCmd = &cobra.Command{
- Use: "buildx",
- Short: "Build images",
- Long: "Build images",
- RunE: validate.SubCommandExists,
- Hidden: true,
+ Use: "buildx",
+ Aliases: []string{"builder"},
+ Short: "Build images",
+ Long: "Build images",
+ RunE: validate.SubCommandExists,
+ Hidden: true,
}
)
diff --git a/cmd/podman/images/prune.go b/cmd/podman/images/prune.go
index 6c39e5c69..fc7451c41 100644
--- a/cmd/podman/images/prune.go
+++ b/cmd/podman/images/prune.go
@@ -36,6 +36,11 @@ var (
func init() {
registry.Commands = append(registry.Commands, registry.CliCommand{
Command: pruneCmd,
+ Parent: buildxCmd,
+ })
+
+ registry.Commands = append(registry.Commands, registry.CliCommand{
+ Command: pruneCmd,
Parent: imageCmd,
})