mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-29 08:57:44 +08:00
build: add missing flags
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
cb83df7a69
commit
717a4afae0
@ -254,6 +254,10 @@ func buildCmd(dockerCli command.Cli) *cobra.Command {
|
|||||||
flags.MarkHidden("cgroup-parent")
|
flags.MarkHidden("cgroup-parent")
|
||||||
flags.StringVar(&ignore, "isolation", "", "Container isolation technology")
|
flags.StringVar(&ignore, "isolation", "", "Container isolation technology")
|
||||||
flags.MarkHidden("isolation")
|
flags.MarkHidden("isolation")
|
||||||
|
flags.BoolVar(&ignoreBool, "rm", true, "Remove intermediate containers after a successful build")
|
||||||
|
flags.MarkHidden("rm")
|
||||||
|
flags.BoolVar(&ignoreBool, "force-rm", false, "Always remove intermediate containers")
|
||||||
|
flags.MarkHidden("force-rm")
|
||||||
|
|
||||||
platformsDefault := []string{}
|
platformsDefault := []string{}
|
||||||
if v := os.Getenv("DOCKER_DEFAULT_PLATFORM"); v != "" {
|
if v := os.Getenv("DOCKER_DEFAULT_PLATFORM"); v != "" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user