You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-registry/buffer-gate-public-content.md
+21-12Lines changed: 21 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,15 +63,14 @@ For details, see [Docker Hub authenticated pulls on App Service](https://azure.g
63
63
64
64
To begin managing copies of public images, you can create an Azure container registry if you don't already have one. Create a registry using the [Azure CLI](container-registry-get-started-azure-cli.md), [Azure portal](container-registry-get-started-portal.md), [Azure PowerShell](container-registry-get-started-powershell.md), or other tools.
65
65
66
+
# [Azure CLI](#tab/azure-cli)
67
+
66
68
As a recommended one-time step, [import](container-registry-import-images.md) base images and other public content to your Azure container registry. The [az acr import](/cli/azure/acr#az-acr-import) command in the Azure CLI supports image import from public registries such as Docker Hub and Microsoft Container Registry and from other private container registries.
67
69
68
70
`az acr import` doesn't require a local Docker installation. You can run it with a local installation of the Azure CLI or directly in Azure Cloud Shell. It supports images of any OS type, multi-architecture images, or OCI artifacts such as Helm charts.
69
71
70
72
Depending on your organization's needs, you can import to a dedicated registry or a repository in a shared registry.
71
73
72
-
# [Azure CLI](#tab/azure-cli)
73
-
Example:
74
-
75
74
```azurecli-interactive
76
75
az acr import \
77
76
--name myregistry \
@@ -81,18 +80,28 @@ az acr import \
81
80
--password <Docker Hub token>
82
81
```
83
82
84
-
# [PowerShell](#tab/azure-powershell)
85
-
Example:
83
+
# [Azure PowerShell](#tab/azure-powershell)
84
+
85
+
As a recommended one-time step, [import](container-registry-import-images.md) base images and other public content to your Azure container registry. The [Import-AzContainerRegistryImage](/powershell/module/az.containerregistry/import-azcontainerregistryimage) command in the Azure PowerShell supports image import from public registries such as Docker Hub and Microsoft Container Registry and from other private container registries.
86
+
87
+
`Import-AzContainerRegistryImage` doesn't require a local Docker installation. You can run it with a local installation of the Azure PowerShell or directly in Azure Cloud Shell. It supports images of any OS type, multi-architecture images, or OCI artifacts such as Helm charts.
88
+
89
+
Depending on your organization's needs, you can import to a dedicated registry or a repository in a shared registry.
86
90
87
91
```azurepowershell-interactive
88
-
Import-AzContainerRegistryImage
89
-
-SourceImage library/busybox:latest
90
-
-ResourceGroupName $resourceGroupName
91
-
-RegistryName $RegistryName
92
-
-SourceRegistryUri docker.io
93
-
-TargetTag busybox:latest
92
+
$Params = @{
93
+
SourceImage = 'library/busybox:latest'
94
+
ResourceGroupName = $resourceGroupName
95
+
RegistryName = $RegistryName
96
+
SourceRegistryUri = 'docker.io'
97
+
TargetTag = 'busybox:latest'
98
+
}
99
+
Import-AzContainerRegistryImage @Params
94
100
```
95
-
Credentials are required if the source registry is not available publicly or the admin user is disabled.
101
+
102
+
Credentials are required if the source registry is not available publicly or the admin user is disabled.
0 commit comments