Docker unable to pull image due to firewall
1. I was facing issue with firewall blocking docker pull.
2. I tried out but was not able to fix the issue using below logic
I used link to read more about it.
https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon
but basically i used below statement from powershell command to setup environment variable.
[Environment]::SetEnvironmentVariable(“HTTP_PROXY”, “http://usernamewithoutdomaintag:passwordwithoutspecialcharacter@proxywithportnumberinnumericformonly”, [EnvironmentVariableTarget]::Machine)
[Environment]::SetEnvironmentVariable(“HTTPS_PROXY”, “http://usernamewithoutdomaintag:passwordwithoutdomaintag@proxywithportnumberinnumericformonly”, [EnvironmentVariableTarget]::Machine)
you can check Windows Environment variables and you can see these values setup as environment variables.
docker pull started working but the issue is my username and password is visible to all the admin users on that machine because it's directly displayed in evironment variables. Need to figure out a way out of it and will provide an update in this post once i have a solution to this problem.
2. I tried out but was not able to fix the issue using below logic
I used link to read more about it.
https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon
but basically i used below statement from powershell command to setup environment variable.
[Environment]::SetEnvironmentVariable(“HTTP_PROXY”, “http://usernamewithoutdomaintag:passwordwithoutspecialcharacter@proxywithportnumberinnumericformonly”, [EnvironmentVariableTarget]::Machine)
[Environment]::SetEnvironmentVariable(“HTTPS_PROXY”, “http://usernamewithoutdomaintag:passwordwithoutdomaintag@proxywithportnumberinnumericformonly”, [EnvironmentVariableTarget]::Machine)
you can check Windows Environment variables and you can see these values setup as environment variables.
docker pull started working but the issue is my username and password is visible to all the admin users on that machine because it's directly displayed in evironment variables. Need to figure out a way out of it and will provide an update in this post once i have a solution to this problem.
Comments