-
Story
-
Resolution: Done
-
Minor
-
DO188 - RHOSCP4.12-en-2-20230607
-
None
-
2
-
ROLE
-
en-US (English)
URL: https://rol.redhat.com/rol/app/courses/do188-4.10/pages/ch02s03
Reporter RHNID: ctiwary@redhat.com
Section: 3 - Container Networking Basics
Language: en-US (English)
Workaround:
Description: DO188 Section 2.3 leaves out something important
When discussion the podman network connect command, section 2.3 says this:
and this:
However, when this is done, an error occurs (I'm using a live RHEL 9.2 system with Podman 4.4.1 and real images and containers):
What the text of the section fails to mention is that the container must already be connected to a network (other than the default podman network) before podman network connect can connect it to another one. (This point, incidentally, is made in the containers chapter [13] in RH134).
So, to make it work:
I removed the container (The WARN message was simply because I'd used a sleep infinity command in the container to prevent it from exiting.)
I recreated the contaner, connecting it a network (postgres-net).
Then I used the podman network connect command to connect it to the example-net network.
VoilĂ !