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

        1. image-2023-06-26-19-00-43-532.png
          51 kB
          Chetan Tiwary
        2. image-2023-06-26-19-00-55-222.png
          44 kB
          Chetan Tiwary
        3. image-2023-06-26-19-01-08-424.png
          56 kB
          Chetan Tiwary
        4. image-2023-06-26-19-01-24-482.png
          106 kB
          Chetan Tiwary
        5. image-2023-06-26-19-01-35-652.png
          97 kB
          Chetan Tiwary
        6. image-2023-06-26-19-01-47-555.png
          65 kB
          Chetan Tiwary

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

              Created:
              Updated:
              Resolved: