本地部署minikube,使用本地insecure registry
0.环境
Minikube 0.34
Docker 18.06.0-ce
Ubuntu 18.04
Minikube连接localhost的insecure registry
1.(host)启动docker registry
docker run -d -p 5000:5000 --name registry registry:2
修改/etc/hosts,添加`127.0.0.1 docker-registry.local`
2.启动minikube
(optional) minikube delete
minikube start --vm-driver kvm2 --insecure-registry docker-registry.local:5000
#修改/etc/hosts,添加
HOST_IP docker-registry.local
#(optional) 检查registry连接是否正常
curl -X GET docker-registry.local:5000/v2/_catalog
#部署
kubectl create NAME --image=docker-registry.local:5000/IMAGE
网络上志同道合,我们一起学习网络安全,一起进步,QQ群:694839022