The --net=container flag to Buildah is deprecated

It's very confusing that `podman run --net=container` joins the
network namespace of another container - but
`podman build --net=container` creates a private network
namespace. We've standardized on `--net=private` for this, and
will eventually remove `podman build --net=container` as an
alias for `--net=private`.

Signed-off-by: Matthew Heon <mheon@redhat.com>
This commit is contained in:
Matthew Heon
2020-12-03 14:21:35 -05:00
parent 350f0f0e9a
commit ee738ab11a

View File

@ -412,7 +412,9 @@ Valid _mode_ values are:
container full access to local system services such as D-bus and is therefore
considered insecure.
- **ns:**_path_: path to a network namespace to join.
- **private**: create a new namespace for the container (default).
- **private**: create a new namespace for the container (default). The
**container** network mode is an alias for **private**, but has been deprecated
and will be removed in a future release of Podman.
#### **--no-cache**