Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-3892

Inventory script which lists running Docker containers on device, with image SHA

    XMLWordPrintable

    Details

      Description

      Acceptance criteria:

      • Inventory script mender-inventory-docker is implemented which lists running containers on device.
      • Key must be docker_images_running (possibly multiple times, in which case the UI will make a list out of it).
      • Each entry should be of the form:
        • docker_images_running=[IMAGE_VENDOR/]IMAGE_NAME:VERSION@sha256:IMAGE_SHA
          
          • For example:
            docker_images_running=mendersoftware/deployments:1.7.0@sha256:0d0431b7d16337c1720be20695c570764768c727804af542c777d325f7e8d24a
            
          • Or
             docker_images_running=ubuntu:18.04@sha256:0d0431b7d16337c1720be20695c570764768c727804af542c777d325f7e8d24a
            
        • If it is not possible to determine the name, simply this is enough:
          docker_images_running=sha256:IMAGE_SHA
          
          • For example
            docker_images_running=sha256:0d0431b7d16337c1720be20695c570764768c727804af542c777d325f7e8d24a
            
      • Acceptance test which runs a couple of dummy containers and reports on them
        • Gitlab can run containers through dind

      The IMAGE_SHA can be found with:

      docker inspect CONTAINER -f '{{.Image}}'
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                a10040 Kristian Amlie
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel