docker push doesn't use the correct repository and fails

8/7/2017

I'm trying to push a docker image to an Azure container repository and even after successfully "logging in" the push command tries to push it to docker.io and then fails.

Note: I am using Windows 10 Pro and have set up docker to to use the minikube docker dameon

How do I tell docker push to use my Azure container repo?

See the output:

enter image description here

-- TugboatCaptain
docker
kubernetes
minikube

1 Answer

8/7/2017

You must tag your image with the Docker Registry URL and then push like this:

docker tag design-service dockerregistry.azurecr.io/design-service
docker push dockerregistry.azurecr.io/design-service

Note: The correct term is registry and not repository. A Docker registry holds repositories of tagged images.

-- Ricardo Branco
Source: StackOverflow