From 374844817d65fa23aa5c8cc1cf83f7275066a092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Sj=C3=B6lund?= Date: Sat, 5 Oct 2024 09:01:58 +0200 Subject: [PATCH] docs: prefer --network to --net MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The option --network is the more official option as it is listed in podman run --help podman kube play --help Signed-off-by: Erik Sjölund --- docs/source/locale/ja/LC_MESSAGES/markdown.po | 2 +- docs/source/markdown/podman-systemd.unit.5.md | 4 ++-- docs/tutorials/basic_networking.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/locale/ja/LC_MESSAGES/markdown.po b/docs/source/locale/ja/LC_MESSAGES/markdown.po index f60f9df7e8..5e4a149943 100644 --- a/docs/source/locale/ja/LC_MESSAGES/markdown.po +++ b/docs/source/locale/ja/LC_MESSAGES/markdown.po @@ -28029,7 +28029,7 @@ msgid "Network=host" msgstr "" #: ../../source/markdown/podman-systemd.unit.5.md:1 -msgid "--net host" +msgid "--network host" msgstr "" #: ../../source/markdown/podman-systemd.unit.5.md:1 diff --git a/docs/source/markdown/podman-systemd.unit.5.md b/docs/source/markdown/podman-systemd.unit.5.md index 8273036536..1e6ead29a0 100644 --- a/docs/source/markdown/podman-systemd.unit.5.md +++ b/docs/source/markdown/podman-systemd.unit.5.md @@ -299,7 +299,7 @@ Valid options for `[Container]` are listed below: | LogOpt=path=/var/log/mykube\.json | --log-opt path=/var/log/mykube\.json | | Mask=/proc/sys/foo\:/proc/sys/bar | --security-opt mask=/proc/sys/foo:/proc/sys/bar | | Mount=type=... | --mount type=... | -| Network=host | --net host | +| Network=host | --network host | | NetworkAlias=name | --network-alias name | | NoNewPrivileges=true | --security-opt no-new-privileges | | Notify=true | --sdnotify container | @@ -1125,7 +1125,7 @@ Valid options for `[Kube]` are listed below: | GlobalArgs=--log-level=debug | --log-level=debug | | KubeDownForce=true | --force (for `podman kube down`) | | LogDriver=journald | --log-driver journald | -| Network=host | --net host | +| Network=host | --network host | | PodmanArgs=\-\-annotation=key=value | --annotation=key=value | | PublishPort=59-60 | --publish=59-60 | | SetWorkingDirectory=yaml | Set `WorkingDirectory` of unit file to location of the YAML file | diff --git a/docs/tutorials/basic_networking.md b/docs/tutorials/basic_networking.md index 17aaf63c5c..2b519d1331 100644 --- a/docs/tutorials/basic_networking.md +++ b/docs/tutorials/basic_networking.md @@ -128,7 +128,7 @@ client can connect to the container. Now run the container. ``` -$ podman run -dt --name webserver --net podman1 -p 8081:80 quay.io/libpod/banner +$ podman run -dt --name webserver --network podman1 -p 8081:80 quay.io/libpod/banner 269fd0d6b2c8ed60f2ca41d7beceec2471d72fb9a33aa8ca45b81dc9a0abbb12 ``` Note in the above run command, the container’s port 80 (where the Nginx server is