docker - Kubernetes error pulling of local registry -
i'm trying setup local registry local development kubernetes.
i by: docker run -d -p 5000:5000 --name registry registry:2
i build , tag docker image:
docker tag apiservice localhost:5000/apiservice
push registry:
docker push localhost:5000/apiservice
in k82 deployment definition:
spec: containers: - name: apiserver image: localhost:5000/apiservice:latest
what need change use minikube , local docker container registry?
are running registry on machine's docker or docker inside minikube? these separate instances of docker, can make them with:
eval $(minikube docker-env)
as explained here: https://github.com/kubernetes/minikube#reusing-the-docker-daemon
then able pull docker images local machine inside minikube.
Comments
Post a Comment