Bug 2223910 - Buildah-config's man page is missing the explanation that --port option can accept both TCP and UDP ports in build
Summary: Buildah-config's man page is missing the explanation that --port option can a...
Keywords:
Status: NEW
Alias: None
Product: Container Development Kit (CDK)
Classification: Red Hat
Component: documentation
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: 2.3
Assignee: Nobody
QA Contact: Ondřej Pták
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-19 09:03 UTC by Krishnakumar
Modified: 2023-07-21 23:14 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.