mirror of
https://github.com/containers/podman.git
synced 2025-06-05 14:06:01 +08:00

Update the docs to properly cross-reference the `--add-host` option. Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
14 lines
558 B
Markdown
14 lines
558 B
Markdown
####> This option file is used in:
|
|
####> podman create, run
|
|
####> If file is edited, make sure the changes
|
|
####> are applicable to all of those.
|
|
#### **--hostname**, **-h**=*name*
|
|
|
|
Set the container's hostname inside the container.
|
|
|
|
This option can only be used with a private UTS namespace `--uts=private`
|
|
(default). If `--pod` is given and the pod shares the same UTS namespace
|
|
(default), the pod's hostname is used. The given hostname is also added to the
|
|
`/etc/hosts` file using the container's primary IP address (also see the
|
|
**--add-host** option).
|