Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-4587

Docker environment variables must be able to contain the equal sign

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.25.0, 0.26.0, 0.27.0
    • 0.28.0
    • docker

    Description

      Note: Affects 0.26 and 0.27.

      The Jupyter Docker all-spark-notebook uses equal sign ('=') in Docker ENV declarations (for instance, https://github.com/jupyter/docker-stacks/blob/master/all-spark-notebook/Dockerfile#L51).

      This causes a mesos Unexpected Env format for 'ContainerConfig.Env' error.

      The problem is the tokenization code at https://github.com/apache/mesos/blob/21e080c5ae6ef03556c7a2b588e034a916c7a05a/src/docker/docker.cpp#L386 which needs to only look at the first equal sign. Docker ENV declarations can also be empty.

      Attachments

        Issue Links

          Activity

            People

              lins05 Shuai Lin
              doctapp Martin Tapp
              Jie Yu Jie Yu
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: