diff --git a/docs/buildah-config.1.md b/docs/buildah-config.1.md index c25511fa51..b62b6b0fe2 100644 --- a/docs/buildah-config.1.md +++ b/docs/buildah-config.1.md @@ -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