author | ms.service | ms.topic | ms.date | ms.author |
---|---|---|---|---|
dlepow |
container-registry |
include |
02/24/2021 |
danlep |
Use the az acr import command in the Azure CLI to import the image from Docker Hub to your registry.
Substitute the name of the source repo and tag in Docker Hub, your Docker Hub account credentials, your registry name, and optionally a different name and tag of the image in the target registry:
az acr import \
--name myregistry \
--source docker.io/library/repo:tag \
--image myprivateimage:mytag \
--username <Docker Hub username> \
--password <Docker Hub password>