Skip to content

Commit

Permalink
add option to import images from public registries (#3623)
Browse files Browse the repository at this point in the history
Allows users to import images from public registries instead of only Azure Container Registries.  Only one registry source can be specified.
  • Loading branch information
nathana1 authored and sarangan12 committed Aug 14, 2018
1 parent b1347cc commit ddbce7c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
},
"ImportImageByManifestDigest": {
"$ref": "./examples/ImportImageByManifestDigest.json"
},
"ImportImageFromPublicRegistry": {
"$ref": "./examples/ImportImageFromPublicRegistry.json"
}
},
"x-ms-long-running-operation": true
Expand Down Expand Up @@ -1189,13 +1192,16 @@
},
"ImportSource": {
"required": [
"resourceId",
"sourceImage"
],
"type": "object",
"properties": {
"resourceId": {
"description": "The resource identifier of the target Azure Container Registry.",
"description": "The resource identifier of the source Azure Container Registry.",
"type": "string"
},
"registryUri": {
"description": "The address of the source registry.",
"type": "string"
},
"sourceImage": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2017-10-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"parameters": {
"source": {
"registryUri": "registry.hub.docker.com",
"sourceImage":"library/hello-world"
},
"targetTags": [
"targetRepository:targetTag"
],
"untaggedTargetRepositories": [
"targetRepository1"
],
"mode": "Force"
}
},
"responses": {
"200": {},
"202": {}
}
}

0 comments on commit ddbce7c

Please sign in to comment.