Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-7431

Improve CMD and override documentation

    Details

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

      Description

      cmd does override ENTRYPOINT in Dockerfile, whereas args [] overrides CMD in Dockerfile and CMD in Marathon App definition is just ignored.

      The UCR behaves exactly the same as Docker, only minor difference, when using `"cmd": "Command defined"` it logs `sh: Command: not found` instead of `/bin/sh: Command: not found` to stderr

       

      FROM alpine:edge
      CMD ["Hello World"]
      ENTRYPOINT ["echo"]
      

      With app definition

      {
        "id": "/marathon-test-args",
        "instances": 1,
        "container": {
          "type": "DOCKER",
          "docker": {
            "image": "namespace/marathon-test"
          }
        },
        "cpus": 0.1,
        "mem": 128,
        "args": [
          "Args defined"
        ]
      }
      

      which produced on STDOUT Args defined

       

      https://gist.github.com/lloesche/482c72986fd739200a24c22d73b63ce7

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ken Ken Sipe
              Team:
              Orchestration Team
              Watchers:
              Ken Sipe
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: