Skip to content

Commit

Permalink
docs: podman-build add --no-hosts
Browse files Browse the repository at this point in the history
Add newly added `--no-hosts` to build docs and document its conflicting
nature with `--add-host`

Signed-off-by: Aditya R <arajan@redhat.com>
Signed-off-by: Krzysztof Baran <krysbaran@gmail.com>
  • Loading branch information
flouthoc authored and kbaran1998 committed Mar 24, 2022
1 parent dacd242 commit d8caa37
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/source/markdown/podman-build.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d8caa37

Please sign in to comment.