Docker on Windows 7 and Proxy Issues

To install docker on windows 7, you have to download Docker Toolbox from Docker Store

Note: Docker for Windows is available for free and requires Microsoft Windows 10 Professional or Enterprise 64-bit. For previous versions of windows get Docker Toolbox.

This installation will also install Oracle VM VirtualBox.

Once the installation completed, Open Docker Quickstart Terminal, it will automatically create 'default' vm. 

Execute the following command to confirm the successful installation.

docker pull hello-world

if this command download 'hello-world' image successfully, then enjoy. 

Usually you may face proxy issues if you are behind a proxy. So to resolve the proxy issues, you can set HTTP_PROXY environment variable. But before setting this variable, you have to install CNTLM.

for CNTLM you can view this post and follow first two steps.

Once CNTLM started, run the following command in Docker Quickstart Terminal to resolve the proxy issues.

docker-machine rm default

click 'y' to delete the 'default' VM.

docker-machine create -d virtualbox --engine-env HTTP_PROXY=10.0.2.2:3128 --engine-env HTTPS_PROXY=10.0.2.2:3128 default

'default' is VM name.

This command will create a 'default' vm and after successfully creation, you can successfully download images from docker hub.

docker pull hello-world

if you still face proxy issues, close the Docker Quickstart Terminal and open it again and pull the image.


Enjoy :)


Comments

Popular posts from this blog

Data Bound Controls in ASP.Net - Part 4 (FormView and DetailsView controls)

ASP.net: HttpHandlers

The Clickjacking attack and X-Frame-Options