Protocol can be specified with --port. Ex. --port 514/udp
Updating the buildah-config man page to include port/protocol with --port Signed-off-by: Ranjith Rajaram <rrajaram@redhat.com>
This commit is contained in:
parent
04c61a7b72
commit
ad3211c262
|
|
@ -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*
|
||||
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue