docker-machine rm defaultStep2: recreate your default machine with proxy
docker-machine create -d virtualbox --engine-env HTTP_PROXY=http://your_proxy_url:your_proxy_port defaultif that not working, you may try this option instead.
docker-machine create -d virtualbox \
--engine-env HTTP_PROXY=http://example.com:8080 \
--engine-env HTTPS_PROXY=https://example.com:8080 \
--engine-env NO_PROXY=example2.com \
default
~/.docker/config.json in the home directory of the user which starts containers.
{
"proxies":
{
"default":
{
"httpProxy": "http://your_proxy_url:your_proxy_port"
}
}
}
Then restart ... computer and rebuild any thing.
By
minhbkpro
|
Thursday, 21 June 2018
|
Docker
|
0 Comments
Read More ...
© 2015 Think your way. All rights reserved.
Designed by minhbkpro