minikube start error to pull new external images, you may need to configure a proxy

Viewed 46

I'm trying to start minikube but it gives me this error

this vM is having trouble accessing https://k8s.gcr.io
To pull new external images, you may need to configure a proxy:
https://minikube.sigs.k8s.io/docs/reference/networking/proxy/

I tried docker and HyperV and VirtualBox same error kubectl is working fine but whenever I tried to pull a namespace like Kubernetes-dashboard I get errimagepull

1 Answers

Option 1:

### Linux 
# Set your proxy
export HTTP_PROXY=http://<proxy hostname:port>
export HTTPS_PROXY=https://<proxy hostname:port>

### Windows
set HTTP_PROXY=http://<proxy hostname:port>
set HTTPS_PROXY=https://<proxy hostname:port>

# Start minikube  
minikube start

Option 2:

minikube start --image-repository=auto

Option 3:

# Remove old content (minikube context)
minikube delete

# Start minikube with docker driver in case you have been using something else
minikube start --driver=docker

Option 4. (If you are in china)

$ minikube start            \
  --driver=docker           \
  ##
  ## Try with or without this flag if it's not working for you
  ## [optional] --image-mirror-country
  --image-mirror-country=cn \ 
  --registry-mirror=https://registry.docker-cn.com \ 
  --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers
Related