Skip to content
This repository was archived by the owner on May 3, 2022. It is now read-only.
This repository was archived by the owner on May 3, 2022. It is now read-only.

duffle export should only try to export 'docker' and 'oci' images #733

@radu-matei

Description

@radu-matei

Trying to export a test bundle that also contains an image type that is neither docker, nor oci results in an error:

Error: Error preparing artifacts: Error pulling image c: Error response from daemon: pull access denied for c, repository does not exist or may require 'docker login'

Test bundle:

{
  "name": "testrelocate",
  "version": "0.1",
  "description": "a bundle with images",
  "invocationImages": [
    {
      "image": "technosophos/helloworld:0.1.0",
      "imageType": "docker"
    }
  ],
  "images": {
    "a": {
      "description": "digested oci",
      "image": "deislabs/duffle@sha256:4d41eeb38fb14266b7c0461ef1ef0b2f8c05f41cd544987a259a9d92cdad2540",
      "digest": "sha256:4d41eeb38fb14266b7c0461ef1ef0b2f8c05f41cd544987a259a9d92cdad2540",
      "imageType": "oci"
    },
    "b": {
      "description": "tagged docker",
      "image": "deislabs/duffle:0.1.0-ralpha.5-englishrose",
      "digest": "sha256:14d6134d892aeccb7e142557fe746ccd0a8f736a747c195ef04c9f3f0f0bbd49",
      "imageType": "docker"
    },
    "c": {
      "description": "neither oci nor docker",
      "image": "c",
      "imageType": "c"
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions