mirror of
https://github.com/containers/podman.git
synced 2026-07-13 00:31:45 -04:00
This commit does the following: - Splits the podman-systemd.unit.5.md into multiple files - one for each quadlet file type. - Adds the podman-quadlet-basic-usage.7.md for quadlet examples. - Majority of the text in the new files is copied from the podman-systemd.unit.5.md - Adds support for very simple condditional in the markdown_preprocess. - Uses new logic in markdown_preprocess in options/*.md to use a single .md file for both podman subcommands man-pages and quadlet man-pages. This deduplicates the Quadlet man-pages a lot. - Adds new `@@option quadlet:source.md`` preprocess command to import such .md files from options directory. Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
17 lines
835 B
Markdown
17 lines
835 B
Markdown
####> This option file is used in:
|
|
####> podman podman-container.unit.5.md.in, create, run
|
|
####> If file is edited, make sure the changes
|
|
####> are applicable to all of those.
|
|
<< if is_quadlet >>
|
|
### `ExposeHostPort=port[/protocol]`
|
|
<< else >>
|
|
#### **--expose**=*port[/protocol]*
|
|
<< endif >>
|
|
|
|
Expose a port or a range of ports (e.g. << '**Expose=3300-3310**' if is_quadlet else '**--expose=3300-3310**' >>).
|
|
The protocol can be `tcp`, `udp` or `sctp` and if not given `tcp` is assumed.
|
|
This option matches the EXPOSE instruction for image builds and has no effect on
|
|
the actual networking rules unless **-P/--publish-all** is used to forward to all
|
|
exposed ports from random host ports. To forward specific ports from the host
|
|
into the container use the << '**PublishPort=**' if is_quadlet else '**-p/--publish**' >> option instead.
|