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>
This commit is contained in:
Aditya R 2022-03-13 23:24:31 +05:30
parent 780d4b2d65
commit c845216fdd
No known key found for this signature in database
GPG Key ID: 8E5A8A19DF7C8673
1 changed files with 8 additions and 1 deletions

View File

@ -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 custom host-to-IP mapping (host:ip)
Add a line to /etc/hosts. The format is hostname:ip. The **--add-host** option 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** #### **--all-platforms**
@ -432,6 +432,13 @@ considered insecure.
Do not use existing cached images for the container build. Build from the start Do not use existing cached images for the container build. Build from the start
with a new set of cached layers. 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* #### **--os**=*string*
Set the OS of the image to be built, and that of the base image to be pulled, Set the OS of the image to be built, and that of the base image to be pulled,