Bug 2223910

Summary: Buildah-config's man page is missing the explanation that --port option can accept both TCP and UDP ports in build
Product: Container Development Kit (CDK) Reporter: Krishnakumar <kmarutha>
Component: documentationAssignee: Nobody <nobody>
Status: NEW --- QA Contact: Ondřej Pták <optak>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: jgreguske, kanderso, lmohanty, timoran
Target Milestone: ---   
Target Release: 2.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Krishnakumar 2023-07-19 09:03:36 UTC
Description of problem:

Buildah-config's man page is missing the explanation that the --port option can accept both TCP and UDP ports in the build 

Reference : https://github.com/containers/buildah/pull/4858

Version-Release number of selected component (if applicable):


How reproducible:


We have tested your requirements in our lab and it is working as expected.
If the protocol is not mentioned then by default it will take TCP.

Please find the below example for your reference. 

Installed buildah and podman version

~~~
buildah-1.29.1-2.module+el8.8.0+18553+8fea4d79.x86_64
podman-4.4.1-12.module+el8.8.0+18735+a32c1292.x86_64
~~~

Build container using build 
~~~
container=$(buildah from registry.access.redhat.com/ubi8)
buildah config --port 53/udp  $container
buildah commit --format docker $container port:latest
~~~

Create the container

~~~
# podman create -it port:latest
859e834c093daff66366652d2b4c962c2673bfb8c3bdb579e2c46a026952c42c
~~~

Verify the UDP port

~~~
# podman inspect 859e834c093daff66366652d2b4c962c2673bfb8c3bdb579e2c46a026952c42c   --format {{.NetworkSettings.Ports}}
map[53/udp:[]]
~~~

Start the container

~~~
# podman create -it -P  port:latest
56545611f432ad5557e3ef30204e835403a0f51460b108fc2cf32a27fdb06d28
# podman start 56545611f432ad5557e3ef30204e835403a0f51460b108fc2cf32a27fdb06d28
56545611f432ad5557e3ef30204e835403a0f51460b108fc2cf32a27fdb06d28
# podman port -l
53/udp -> 0.0.0.0:57145
~~~

Actual results:


Expected results:


Additional info:

Need to add documentation