Push a Docker container to the ACR
The following steps walk through pushing a Docker container from your workstation to an already existing ACR that you have access to.
Categories:
less than a minute
Requirements
- Login-to-Azure-Container-Registry
Process
Before you can push an image to your registry, you must tag it with the fully qualified name of your registry login server. The sign in server name is in the format
Tag the image using the docker tag command. Replace
docker tag [YourLocalImageName]:[YourLocalImageVersion] [YourACRLoginServer]/[YourImageName]:[YourImageVersion]
For example:
docker tag myapp:v1 myregistry.azurecr.io/myapp:v1
Use docker push to push the image to the registry instance. Replace
push [YourACRLoginServer]/[YourImageName]:[YourImageVersion]
For example:
docker push myregistry.azurecr.io/myapp:v1
Last modified July 21, 2024: update (e2ae86c)