Details

    • Type: Task
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Networking
    • Labels:

      Description

      Hello,

      Ich have a problem with the Mapping of Ports. If I want to run a Nginx Server on Marathon it all works great, as far as I dont map the ports so Marathon have to take a random Port. He hangs at Deploy and Waiting. Docker Logs is not available, because the container is not started so I have no idea what it can be.

      If I run it with the same Image in docker with docker run -p 80:80 httpd it works but not if I map the hostContainer on 80.

      My Nginx Jason File
      `{
      "id": "/minimal-nginx",
      "cmd": null,
      "cpus": 0.5,
      "mem": 64,
      "disk": 0,
      "instances": 0,
      "acceptedResourceRoles": [
      "*"
      ],
      "container": {
      "type": "DOCKER",
      "volumes": [],
      "docker": {
      "image": "kitematic/hello-world-nginx",
      "network": "BRIDGE",
      "portMappings": [
      {
      "containerPort": 80,
      "hostPort": 1080,
      "servicePort": 10004,
      "protocol": "tcp",
      "labels": {}
      }
      ],
      "privileged": false,
      "parameters": [],
      "forcePullImage": false
      }
      },
      "healthChecks": [

      { "gracePeriodSeconds": 5, "intervalSeconds": 20, "timeoutSeconds": 20, "maxConsecutiveFailures": 3, "portIndex": 0, "path": "/", "protocol": "HTTP", "ignoreHttp1xx": false }

      ],
      "portDefinitions": [
      {
      "port": 10004,
      "protocol": "tcp",
      "labels": {}
      }
      ]
      }`

      This isssue has been created automatically from Marathon GitHub Issue 5433.

        Attachments

          Activity

            People

            • Assignee:
              adukhovniy Aleksey Dukhovniy
              Reporter:
              marathon-bot Marathon Bot
              Team:
              Orchestration Team
              Watchers:
              Aleksey Dukhovniy, Marathon Bot, theroht
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: