azure-container-registry

Azure Container Registry - delete all images except 2

狂风中的少年 提交于 2019-12-11 05:11:59
问题 I want to delete all images in Azure Container Registry except the last two. I was looking for an script for do so but I only find to delete images older than X days. This is not possible for my situation because some days there are a lot of images created and other days only one. Somebody has any idea? 回答1: I am unable to test it right now but this little PowerShell script should work: $acrName = 'YourACRName' $repo = az acr repository list --name $acrName $repo | Convertfrom-json | Foreach

Azure Container Registry - List Images / Tags - Programmatically

无人久伴 提交于 2019-12-08 02:29:34
问题 I'm bashing my head against the wall to try and figure out how to programmatically get a list of images in an Azure Container Registry. Everything seems to fall down to looking in Docker.DotNet's own local instantiation of an image list, and push/pulling to an ACR via that local repository - but nothing is showing me how to get a list of images (and their tags) from the ACR itself. In digging through their rest API for azure, it looks like only a slim set of "management" options are available

Azure app service docker container 'Service Unavailable'

≡放荡痞女 提交于 2019-12-07 03:11:35
问题 I have followed the tutorials for building a .net core web application into a docker image, publishing to an azure container registry, and then I have setup my VSTS Release template to deploy the container to the app service. This all appears to work, I can view my image in the container registry, and the deployment appears to succeed - but when navigating to the app service site, all I get is an HTTP 503 - Service unavailable. The app service is started, I can see deployments in my file

Pull image Azure Container Registry - Kubernetes

人走茶凉 提交于 2019-12-03 12:51:57
Does anyone have any advice on how to pull from Azure container registry whilst running within Azure container service (kubernetes) I've tried a sample deployment like the following but the image pull is failing: kind: Deployment apiVersion: extensions/v1beta1 metadata: name: jenkins-master spec: replicas: 1 template: metadata: name: jenkins-master labels: name: jenkins-master spec: containers: - name: jenkins-master image: myregistry.azurecr.io/infrastructure/jenkins-master:1.0.0 imagePullPolicy: Always readinessProbe: tcpSocket: port: 8080 initialDelaySeconds: 20 timeoutSeconds: 5 ports: -

IoT Edge : device can't download my module from Azure Container Registry but it can from dockerhub

隐身守侯 提交于 2019-12-02 10:02:13
问题 I followed this azure example to develop my module connectedbarmodule in python for Azure IoT Edge. Then , I followed this link to deploy my module in my device (raspberry pi 3). However, my module can't be downloaded. Then, I executed the following command on my device : sudo docker logs -f edgeAgent I have the following error: Error calling Create module ConnectedBarModule: Get https://iotedgeregistery.azurecr.io/v2/connectedbarmodule/manifests/0.0.1-amd64: unauthorized: authentication

Deploying a container from ACR to AKS

一笑奈何 提交于 2019-12-02 06:41:54
I have a Container with a very simple Web App uploaded to an Azure Container Registry. I have an AKS cluster created. Now I want to deploy my container into AKS. I've found a number of tutorials on this, but they all seem to refer to YAML files that have very little, or no, explanation. I, therefore, have two questions: Is it necessary to use a YAML file to achieve this (kubectl create -f myyaml.yml)? (If not, what are the alternatives) Is there any documentation for exactly what needs to be in these files, and what those commands are compatible with (for example, I've noticed that 'kind:

IoT Edge : device can't download my module from Azure Container Registry but it can from dockerhub

可紊 提交于 2019-12-02 05:24:14
I followed this azure example to develop my module connectedbarmodule in python for Azure IoT Edge. Then , I followed this link to deploy my module in my device (raspberry pi 3). However, my module can't be downloaded. Then, I executed the following command on my device : sudo docker logs -f edgeAgent I have the following error: Error calling Create module ConnectedBarModule: Get https://iotedgeregistery.azurecr.io/v2/connectedbarmodule/manifests/0.0.1-amd64: unauthorized: authentication required) This is an url regarding my Azure Container Registry where the image of my module is stored. I

How to delete image from Azure Container Registry

*爱你&永不变心* 提交于 2019-11-30 05:02:26
Is there a way to delete specific tags only? I only found a way to delete the whole registry using the REST / cli-acr Thanks We are hardening up the registry for our GA release later this month. We've deferred all new features while we focus on performance, reliability and additional azure data centers, delivering ACR across all public data centers by GA. We will provide deleting of images and tags in a future release. We're started to use https://github.com/Azure/acr/ to track features and bugs. Delete is captured here: https://github.com/Azure/acr/issues/33 Thanks for the feedback, Steve You