共用方式為


Azure Stack Hub 上支援的 Azure Container Registry 命令

Azure Stack Hub 上的 Azure Container Registry (ACS) 支持全域 Azure 功能的子集。 如需詳細資訊,請參閱概觀

支援的 Azure Container Registry CLI 命令

Command 描述
az acr check-health 取得環境的健康情況資訊,並選擇性地取得目標登錄。
az acr check-name 檢查 Azure Container Registry 名稱是否有效且可供使用。
az acr create 建立 Azure Container Registry 實例。
az acr credential renew 重新產生 Azure Container Registry 實例的登入認證。
az acr credential show 取得 Azure Container Registry 實例的登入認證。
az acr delete 刪除 Azure Container Registry 實例。
az acr import 從另一個 Container Registry 將映射匯入至 Azure Container Registry。 匯入會移除 docker pull、docker tag、docker push 的需求。
az acr list 列出目前訂用帳戶下的所有容器登錄。
az acr login 透過 Docker CLI 登入 Azure Container Registry。
az acr manifest list-metadata 列出 Azure Container Registry 中存放庫的指令清單。
az acr repository delete 刪除 Azure Container Registry 中的存放庫或映像。
az acr repository list 列出 Azure Container Registry 中的存放庫。
az acr repository show 取得 Azure Container Registry 中存放庫或映像的屬性。
az acr repository show-tags 顯示 Azure Container Registry 中存放庫的標籤。
az acr repository untag 在 Azure Container Registry 中取消標記映像。
az acr repository update 更新 Azure Container Registry 中存放庫或映像的屬性。
az acr show 取得 Azure Container Registry 的詳細數據。
az acr show-usage 取得 Azure Container Registry 的記憶體使用量。
az acr update 更新 Azure Container Registry。
az acr webhook create 建立 Azure Container Registry 的 Webhook。
az acr webhook delete 從 Azure Container Registry 刪除 Webhook。
az acr webhook get-config 取得 Webhook 的服務 URI 和自定義標頭。
az acr webhook list 列出 Azure Container Registry 的所有 Webhook。
az acr webhook list-events 列出 Webhook 的最新事件。
az acr webhook ping 觸發 Webhook 的 Ping 事件。
az acr webhook show 取得 Webhook 的詳細數據。
az acr webhook update 更新 Webhook。

不支援的選擇性參數

某些支援的命令具有 Azure Stack Hub 上不支援的選擇性參數。 不支持的參數如下所示:

az acr create

  • --allow-trusted-services
  • --default-action
  • --identity
  • --key-encryption-key
  • --public-network-enabled
  • --workspace
  • --zone-redundancy

az acr update

  • --allow-trusted-services
  • --anonymous-pull-enabled
  • --data-endpoint-enabled
  • --default-action
  • --public-network-enabled
  • --sku

支援的 Azure Container Registry PowerShell 命令

Command 描述
Connect-AzContainerRegistry 登入 Azure 容器登錄。
Get-AzContainerRegistry 取得容器登錄。
Get-AzContainerRegistryCredential 取得容器登錄的登入認證。
Get-AzContainerRegistryManifest 取得或列出 ACR 指令清單。
Get-AzContainerRegistryRepository 取得或列出 ACR 存放庫。
Get-AzContainerRegistryTag 取得或列出 ACR 標籤。
Get-AzContainerRegistryUsage 取得 Azure 容器登錄的使用方式。
Get-AzContainerRegistryWebhook 取得容器登錄 Webhook。
Get-AzContainerRegistryWebhookEvent 取得容器登錄 Webhook 的事件。
Import-AzContainerRegistryImage 將映像從全域 Azure 登錄匯入至 Azure 容器登錄。
New-AzContainerRegistry 建立容器登錄。
New-AzContainerRegistryWebhook 建立容器登錄 Webhook。
Remove-AzContainerRegistry 拿掉容器登錄。
Remove-AzContainerRegistryManifest 刪除 ACR 指令清單。
Remove-AzContainerRegistryRepository 從 ACR 刪除存放庫。
Remove-AzContainerRegistryTag 取消標記 ACR 標籤。
Remove-AzContainerRegistryWebhook 拿掉容器登錄 Webhook。
Test-AzContainerRegistryNameAvailability 檢查容器登錄名稱的可用性。
Test-AzContainerRegistryWebhook 觸發 Webhook ping 事件。
Update-AzContainerRegistry 更新容器登錄。
Update-AzContainerRegistryCredential 重新產生容器登錄的登入認證。
Update-AzContainerRegistryManifest 更新 ACR 指令清單。
Update-AzContainerRegistryRepository 更新 ACR 存放庫。
Update-AzContainerRegistryTag 更新 ACR 標籤。
Update-AzContainerRegistryWebhook 更新容器登錄 Webhook。

下一步

深入瞭解 Azure Stack Hub 上的 Azure Container Registry