summaryrefslogtreecommitdiff
path: root/docs/source
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-03-15 06:32:07 -0400
committerGitHub <noreply@github.com>2022-03-15 06:32:07 -0400
commit758f2c7a094a3654af98d9365b7f975b7bd12ff4 (patch)
tree41dace9da8f4eb9da1500b28e94ff72e04ebee2f /docs/source
parentae7997ab50c7dcfbf7f0a3ec19c9ce1126095f8e (diff)
parentdaebf50b899fe998b8866a9f99e4c2b677645091 (diff)
downloadpodman-758f2c7a094a3654af98d9365b7f975b7bd12ff4.tar.gz
podman-758f2c7a094a3654af98d9365b7f975b7bd12ff4.tar.bz2
podman-758f2c7a094a3654af98d9365b7f975b7bd12ff4.zip
Merge pull request #13498 from flouthoc/podman-vendor-buildah
vendor: update `c/buildah`, `c/image` and `c/storage`
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/markdown/podman-build.1.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/source/markdown/podman-build.1.md b/docs/source/markdown/podman-build.1.md
index 2c8f4005c..b9542fec5 100644
--- a/docs/source/markdown/podman-build.1.md
+++ b/docs/source/markdown/podman-build.1.md
@@ -52,7 +52,7 @@ command to see these containers. External containers can be removed with the
Add a custom host-to-IP mapping (host:ip)
Add a line to /etc/hosts. The format is hostname:ip. The **--add-host** option
-can be set multiple times.
+can be set multiple times. Conflicts with the --no-hosts option.
#### **--all-platforms**
@@ -432,6 +432,13 @@ considered insecure.
Do not use existing cached images for the container build. Build from the start
with a new set of cached layers.
+#### **--no-hosts**
+
+Do not create _/etc/hosts_ for the container.
+
+By default, Buildah manages _/etc/hosts_, adding the container's own IP address.
+**--no-hosts** disables this, and the image's _/etc/hosts_ will be preserved unmodified. Conflicts with the --add-host option.
+
#### **--os**=*string*
Set the OS of the image to be built, and that of the base image to be pulled,