Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-1630

DO188-80: Ch02s03 : Section 2.3 leaves out something important

XMLWordPrintable

    • 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Ă !

            rhn-gps-gbianco Guy Bianco
            chetan-rhls Chetan Tiwary
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: