Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. az group create --name myResourceGroup --location eastus
  2.  
  3. # create registry
  4. az acr create --resource-group myResourceGroup --name <acrName> --sku Basic --admin-enabled true
  5.  
  6. # log in to registry
  7. az acr login --name <acrName>
  8.  
  9. # get the full login server name for ACR - required for tagging
  10. az acr show --name <acrName> --query loginServer --output table
  11. # e.g. <acrName>.azurecr.io
  12.  
  13. # tag image ready for push to ACR
  14. docker tag aci-tutorial-app <acrName>.azurecr.io/aci-tutorial-app:v1
  15.  
  16. # push to ACR
  17. docker push <acrName>.azurecr.io/aci-tutorial-app:v1
  18.  
  19. # list images in ACR
  20. az acr repository list --name <acrName> --output table
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement