cancel
Showing results for 
Search instead for 
Did you mean: 
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 621 Views

DO188 Section 2.3 leaves out something important

When discussion the podman network connect command, section 2.3 says this:

1a.JPG

and this:

1b.JPG

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):

2.JPG

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).

5.JPG

So, to make it work:

3.JPG

  1. 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.)
  2. I recreated the contaner, connecting it a network (postgres-net).
  3. Then I used the podman network connect command to connect it to the example-net network.

Voilà!

4.JPG

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
Labels (4)
1 Reply
Chetan_Tiwary_
Community Manager
Community Manager
  • 574 Views

Hi @Tracy_Baker !

Reported this as well !

Thanks for letting us know about the same. 

0 Kudos
Join the discussion
You must log in to join this conversation.