diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2020-11-12 22:04:54 +0100 |
---|---|---|
committer | Paul Holzinger <paul.holzinger@web.de> | 2020-11-12 23:17:42 +0100 |
commit | 79f5aed31618b7d1b3c47f08ba9b33e600851232 (patch) | |
tree | 55d5c992515a044657ad1c720b2c8eaf6d0f5ad9 | |
parent | a65ecc70c21eb5eef7d7a6b70cc1f90e577bb72e (diff) | |
download | podman-79f5aed31618b7d1b3c47f08ba9b33e600851232.tar.gz podman-79f5aed31618b7d1b3c47f08ba9b33e600851232.tar.bz2 podman-79f5aed31618b7d1b3c47f08ba9b33e600851232.zip |
Add podman build --net alias for --network
Fixes #8332
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
-rw-r--r-- | cmd/podman/images/build.go | 1 | ||||
-rw-r--r-- | docs/source/markdown/podman-build.1.md | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/cmd/podman/images/build.go b/cmd/podman/images/build.go index f48d1cd94..09914db93 100644 --- a/cmd/podman/images/build.go +++ b/cmd/podman/images/build.go @@ -128,6 +128,7 @@ func buildFlags(flags *pflag.FlagSet) { } flags.AddFlagSet(&fromAndBudFlags) _ = flags.MarkHidden("signature-policy") + flags.SetNormalizeFunc(buildahCLI.AliasFlags) } // build executes the build command. diff --git a/docs/source/markdown/podman-build.1.md b/docs/source/markdown/podman-build.1.md index f9568b5d3..d785d6c37 100644 --- a/docs/source/markdown/podman-build.1.md +++ b/docs/source/markdown/podman-build.1.md @@ -394,7 +394,7 @@ The format of `LIMIT` is `<number>[<unit>]`. Unit can be `b` (bytes), `k` (kilobytes), `m` (megabytes), or `g` (gigabytes). If you don't specify a unit, `b` is used. Set LIMIT to `-1` to enable unlimited swap. -#### **--network**=*mode* +#### **--network**=*mode*, **--net** Sets the configuration for network namespaces when handling `RUN` instructions. |