diff options
author | Aditya R <arajan@redhat.com> | 2022-03-13 23:24:31 +0530 |
---|---|---|
committer | Aditya R <arajan@redhat.com> | 2022-03-14 12:26:18 +0530 |
commit | c845216fdd1974e51efedbe5861da34d20c1763b (patch) | |
tree | e55aa31fd40adcec7fdf3005aa3bf13415fe0b2d /docs/source/markdown/podman-build.1.md | |
parent | 780d4b2d65b196311e70f3bfe8cee9701056400a (diff) | |
download | podman-c845216fdd1974e51efedbe5861da34d20c1763b.tar.gz podman-c845216fdd1974e51efedbe5861da34d20c1763b.tar.bz2 podman-c845216fdd1974e51efedbe5861da34d20c1763b.zip |
docs: podman-build add --no-hosts
Add newly added `--no-hosts` to build docs and document its conflicting
nature with `--add-host`
Signed-off-by: Aditya R <arajan@redhat.com>
Diffstat (limited to 'docs/source/markdown/podman-build.1.md')
-rw-r--r-- | docs/source/markdown/podman-build.1.md | 9 |
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, |