Skip to content

Commit e54c252

Browse files
committed
Fix information about port configuration after reboot
1 parent 179b850 commit e54c252

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

source/k8s-port.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,19 @@ The container can expose some ports (for example, the port 80 to receive HTTP re
109109

110110
.. important::
111111

112-
A `know shortcoming <https://github.com/containers/podman/blob/main/rootless.md>`_ of rootless is that the host's privileged ports (TCP/IP port numbers below 1024) can not be used. A workaround is to **temporarily** make a specific port (for example, port 80) not privileged using
112+
A `know shortcoming <https://github.com/containers/podman/blob/main/rootless.md>`_ of rootless is that the host's privileged ports (TCP/IP port numbers below 1024) can not be used. A workaround is to **temporarily** make more ports (for example, port 80) not privileged using
113113

114114
.. code:: bash
115115
116-
sudo sysctl net.ipv4.ip_unprivileged_port_start=80
116+
sudo sysctl -w net.ipv4.ip_unprivileged_port_start=80
117117
118-
or **permanentily** make a specific port (for example, port 80) not privileged using
118+
To make the change **permanent**, add
119119

120-
.. code:: bash
120+
.. code::
121121
122-
sudo sysctl -w net.ipv4.ip_unprivileged_port_start=80
122+
net.ipv4.ip_unprivileged_port_start=80
123+
124+
to ``/etc/sysctl.d/1000-podman.conf``.
123125

124126
Example
125127
-------

0 commit comments

Comments
 (0)