Hello,
Nous allons voir ensemble dans cet article comment créer une Azure Container Registry (ACR) puis comment puller une image vers cette registry.
maxime@Azure:~$ az acr create --name k8smaxdemoacr --resource-group k8smaxdemo --sku Basic { "adminUserEnabled": false, "creationDate": "2018-02-03T16:11:49.362128+00:00", "id": "/subscriptions/7db5e03c-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/k8smaxdemo/providers/Microsoft.ContainerRegistry/regist ries/k8smaxdemoacr", "location": "eastus", "loginServer": "k8smaxdemoacr.azurecr.io", "name": "k8smaxdemoacr", "provisioningState": "Succeeded", "resourceGroup": "k8smaxdemo", "sku": { "name": "Basic", "tier": "Basic" }, "status": null, "storageAccount": null, "tags": {}, "type": "Microsoft.ContainerRegistry/registries" }
docker pull microsoft/azure-vote-front:redis-v1 docker tag microsoft/azure-vote-front:redis-v1 k8smaxdemoacr.azurecr.io/microsoft/azure-vote-front:redis-v1 docker login k8smaxdemoacr.azurecr.io --username k8smaxdemoacr --password PASSWORD docker push k8smaxdemoacr.azurecr.io/microsoft/azure-vote-front:redis-v1