Docker Toolbox for older Mac and Windows
References
References
https://docs.docker.com/toolbox/overview/
Proxy
Proxy
What finally worked out for me is based on [https://stackoverflow.com/a/53038417/1323562]:
- Install Docker Toolbox
- After installation, go to D:\Usuarios\<username>\.docker\machine\machines\default and open config.json. If you do not have that folder, then please open "Docker Quickstart Terminal" from your desktop to create a virtual box docker-machine for yourself.
- Add the following lines under
{
"HostOptions": {
...
"EngineOptions": {
...
"Env": [
"HTTP_PROXY=%HTTP_PROXY%",
"HTTPS_PROXY=%HTTPS_PROXY%",
"NO_PROXY=%NO_PROXY%"
],
}
}
}
Note: After starting Docker Quickstart Terminal, environment variable will be replaced by actual values.
4. Test it
user@HOST MINGW64 /c/Program Files/Docker Toolbox
$ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
1b930d010525: Pull complete
Digest: sha256:41a65640635299bab090f783209c1e3a3f11934cf7756b09cb2f1e02147c6ed8
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.