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

Validate `DockerInfo` exists when container's type is `DOCKER`

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • containerization
    • None
    • Mesosphere Sprint 76
    • 2

    Description

      Currently when framework launches a task whose ContainerInfo's type is DOCKER (i.e., Docker containerizer will be used to launch the container), we do not validate if the `DockerInfo` exists in the ContainerInfo, so such task will be sent from master to agent, and will eventually fail due to pulling image with empty name.

      Failed to launch container: Failed to run 'docker -H unix:///var/run/docker.sock pull :latest': exited with status 1; stderr='invalid reference format'
      
      

      Actually we have a validation inĀ this code, but it is too late (i.e., when Docker executor tries to create the Docker container), we should do the validation much earlier, e.g., in master.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            qianzhang Qian Zhang
            qianzhang Qian Zhang
            Gilbert Song Gilbert Song
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Agile

                Completed Sprint:
                Mesosphere Sprint 76 ended 30/Mar/18
                View on Board

                Slack

                  Issue deployment