Skip to content

Commit

Permalink
Merge pull request #5066 from ranjithrajaram/devel-doc
Browse files Browse the repository at this point in the history
[CI:DOCS] Protocol can be specified with --port. Ex. --port 514/udp
  • Loading branch information
openshift-merge-robot committed Sep 29, 2023
2 parents 04c61a7 + ad3211c commit 0d717cd
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/buildah-config.1.md
Expand Up @@ -182,12 +182,15 @@ This option is typically only meaningful when the image's OS is Windows, and is
typically set in Windows base images, so using this option is usually
unnecessary.

**--port**, **-p** *port*
**--port**, **-p** *port/protocol*

Add a *port* to expose when running containers based on any images which
will be built using the specified container. Can be used multiple times.
If *port* has a trailing `-`, and is already set, then the *port* is removed from the config.
If the port is set to "-" then all exposed ports settings are removed from the config.
To specify whether the port listens on TCP or UDP, use "port/protocol".
The default is TCP if the protocol is not specified. To expose the port on both TCP and UDP,
specify the port option multiple times. If *port* has a trailing `-` and is already set,
then the *port* is removed from the configuration. If the port is set to `-` then all exposed
ports settings are removed from the configuration.

**--shell** *shell*

Expand Down Expand Up @@ -255,6 +258,8 @@ buildah config --volume /usr/myvol- containerID

buildah config --port 1234 --port 8080 containerID

buildah config --port 514/tcp --port 514/udp containerID

buildah config --env 1234=5678 containerID

buildah config --env 1234- containerID
Expand Down

0 comments on commit 0d717cd

Please sign in to comment.