Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minikube pulls image failed #1

Open
tangcong opened this issue Dec 12, 2018 · 2 comments
Open

minikube pulls image failed #1

tangcong opened this issue Dec 12, 2018 · 2 comments

Comments

@tangcong
Copy link
Owner

Using Minikube with an HTTP Proxy

Minikube creates a Virtual Machine that includes Kubernetes and a Docker daemon. When Kubernetes attempts to schedule containers using Docker, the Docker daemon may require external network access to pull containers.
If you are behind an HTTP proxy, you may need to supply Docker with the proxy settings. To do this, pass the required environment variables as flags during minikube start.
For example:
$ minikube start --docker-env http_proxy=http://$YOURPROXY:PORT
--docker-env https_proxy=https://$YOURPROXY:PORT
If your Virtual Machine address is 192.168.99.100, then chances are your proxy settings will prevent kubectl from directly reaching it. To by-pass proxy configuration for this IP address, you should modify your no_proxy settings. You can do so with:
$ export no_proxy=$no_proxy,$(minikube ip)

@tangcong
Copy link
Owner Author

tangcong commented Dec 12, 2018

1.install shadowscoks-ng
2.preferences,enable http proxy feature(if Minikube's driver is vm, http proxy listen address have to be accessed by vm, localhost will be failed)
3.Using Minikube with an HTTP Proxy

@tangcong
Copy link
Owner Author

eval $(minikube docker-env)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant