Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-7321

FIWARE.Request.Tech.Cloud.Docker.FDCS port problem

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      For testing purpose I'm tring with NGINX web server:

      1.
      docker run -d --net isolated_nw -p 80:80 --name nginx nginx
      docker exec -ti nginx bash

      2.
      root@formica-VirtualBox:/home/lprunella# docker ps -a
      CONTAINER ID IMAGE COMMAND CREATED
      STATUS PORTS NAMES
      60ec8fc5fda8 nginx "nginx -g 'daemon off" 5 minutes
      ago Up 5 minutes 130.206.119.28:80->80/tcp, 443/tcp
      docker-host-2/nginx

      3.
      root@formica-VirtualBox:/home/lprunella# docker --config ~/.docker network
      inspect isolated_nw
      [
      {
      "Name": "isolated_nw",
      "Id":
      "f8331ba01492e170824be19397b2827462e2ada7351d5fbfe2642ebdd1b53282",
      "Scope": "local",
      "Driver": "bridge",
      "EnableIPv6": false,
      "IPAM": {
      "Driver": "default",
      "Options": {},
      "Config": [

      { "Subnet": "172.19.0.0/16", "Gateway": "172.19.0.1/16" }

      ]
      },
      "Internal": false,
      "Containers": {

      "60ec8fc5fda8eb3ae5de81d9e455081ad3e3bb75d82e8e28dec1683c12ece745":

      { "Name": "nginx", "EndpointID": "19442fed21c24ed2a920fa5bf6ba817482584b477c7a5a43bc8bf39feccb9a94", "MacAddress": "02:42:ac:13:00:02", "IPv4Address": "172.19.0.2/16", "IPv6Address": "" }

      },
      "Options": {},
      "Labels": {}
      }
      ]

      But when from browser I attempt to connect to the web server at
      130.206.119.28:80 I have no response. I have also checked with 8000:80.

      Thank you

      Best regards

      cid:image001.png@01D1EDAF.8BF11F70

      NICOLA PRUNELLA

      Software Engineer

      M.: +39 335 7174081

      <nicola.prunella@terasrl.it> nicola.prunella@terasrl.it

      <https://www.linkedin.com/company/tera-srl>
      cid:image002.jpg@01D1EDAF.8BF11F70 <https://twitter.com/terasrl/>
      cid:image003.jpg@01D1EDAF.8BF11F70
      <https://www.facebook.com/terasrl/?ref=settings>
      cid:image004.jpg@01D1EDAF.8BF11F70
      <https://www.youtube.com/channel/UCEL7okanxt_JFt3YJUrV6cg>
      cid:image005.jpg@01D1EDAF.8BF11F70

      cid:image002.jpg@01D1EDAF.8BF11F70 <https://twitter.com/lprunella>
      cid:image006.jpg@01D1EDAF.8BF11F70cid:image004.jpg@01D1EDAF.8BF11F70
      <skype:> cid:image007.jpg@01D1EDAF.8BF11F70

      TERA SRL

      Via Cesare Balbo 19/D,

      70014, Conversano (BA),

      Italy

      P.: +39 080 2147775

      <http://www.terasrl.it> www.terasrl.it

      <info@terasrl.it> info@terasrl.it

      Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
      Please, send your messages using the new domain (Fiware-lab-help@lists.fiware.org) instead of the old one.
      _______________________________________________
      Fiware-lab-help mailing list
      Fiware-lab-help@lists.fiware.org
      https://lists.fiware.org/listinfo/fiware-lab-help
      [Created via e-mail received from: nicola.prunella@terasrl.it]

      1. image001_01D21325B92E6970.png
        4 kB
      2. image002_01D21325B92E6970.jpg
        0.8 kB
      3. image003_01D21325B92E6970.jpg
        0.8 kB
      4. image004_01D21325B92E6970.jpg
        0.8 kB
      5. image005_01D21325B92E6970.jpg
        0.8 kB
      6. image006_01D21325B92E6970.jpg
        0.8 kB
      7. image007_01D21325B92E6970.jpg
        0.8 kB

        Activity

        Hide
        knagin Kenneth Nagin added a comment -

        The problem below is that you are using an absolute host port mapping " -p 80:80". It should be "-p 80". Docker will auto assign a port that is mapped to the container's port.
        You can fetch the host port mapping with "nginx_uri=$(docker port nginx 80)". We don't allow absolute port mapping because there mean tenants would be competing with each other for ports.

        Show
        knagin Kenneth Nagin added a comment - The problem below is that you are using an absolute host port mapping " -p 80:80". It should be "-p 80". Docker will auto assign a port that is mapped to the container's port. You can fetch the host port mapping with "nginx_uri=$(docker port nginx 80)". We don't allow absolute port mapping because there mean tenants would be competing with each other for ports.
        Hide
        knagin Kenneth Nagin added a comment -

        The user contacted me directly. The problem is fixed.

        Show
        knagin Kenneth Nagin added a comment - The user contacted me directly. The problem is fixed.

          People

          • Assignee:
            knagin Kenneth Nagin
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: