I am trying to push an image to a local registry running in minikube but get the below error:
Successfully built ee84225eb459
Successfully tagged user/apiserver:0.0.1
$ docker push localhost:5000/user/apiserver:0.0.1
The push refers to a repository [localhost:5000/user/apiserver]
An image does not exist locally with the tag: localhost:5000/user/apiserver
I have already tried starting minikube with below:
minikube start --vm-driver xhyve --insecure-registry localhost:5000
eval $(minikube docker-env)
Successfully tagged user/apiserver:0.0.1
docker push localhost:5000/user/apiserver:0.0.1
Image tags need to include the registry name/port for you to push them anywhere other than the default registry (docker hub). So you need to tag your image as localhost:5000/user/apiserver:0.0.1
rather than user/apiserver:0.0.1
. Then you'll be able to push to your local registry.