summaryrefslogtreecommitdiff
path: root/cmd/podman/images/buildx.go
diff options
context:
space:
mode:
authorAditya Rajan <arajan@redhat.com>2021-10-12 12:41:07 +0530
committerAditya Rajan <arajan@redhat.com>2021-10-12 15:31:54 +0530
commitab8fb3876d25efa2196dbea9d6e07e3ea6493c23 (patch)
tree97290e0b6f03c30f7b0fe5c5ac95f649d5d9c916 /cmd/podman/images/buildx.go
parent2fcec59445267e8c8e06005539701a172d3db8a5 (diff)
downloadpodman-ab8fb3876d25efa2196dbea9d6e07e3ea6493c23.tar.gz
podman-ab8fb3876d25efa2196dbea9d6e07e3ea6493c23.tar.bz2
podman-ab8fb3876d25efa2196dbea9d6e07e3ea6493c23.zip
builder: Add support for builder prune
Docker has support for docker builder prune and docker builder build This patch will add a hidden command to support scripts using this syntax. We don't want to encourage this deviation. Add podman build prune to implement docker builder prune functionality. Co-authored-by: Daniel J Walsh <dwalsh@redhat.com> Signed-off-by: Aditya Rajan <arajan@redhat.com>
Diffstat (limited to 'cmd/podman/images/buildx.go')
-rw-r--r--cmd/podman/images/buildx.go11
1 files changed, 6 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,
}
)