Giter VIP home page Giter VIP logo

Comments (11)

StefanScherer avatar StefanScherer commented on May 23, 2024

Thanks for the details. I'm AFK for some days so it will take some time for a closer look.

So you use the swarm-mode subfolder to build the nodes?

from docker-windows-box.

AmalVR avatar AmalVR commented on May 23, 2024

Actually I have used "swarm-demo" subfolder.
Below is the error
docker -H tcp://192.168.36.1 info
error during connect: Get http://192.168.36.1:2375/v1.30/info: read tcp 10.0.2.15:50431->10.177.38.133:80: wsarecv: An existing connection was forcibly closed by the remote host.

from docker-windows-box.

StefanScherer avatar StefanScherer commented on May 23, 2024

Hm, strange. Is that a proxy (10.177.38.133) in between?

from docker-windows-box.

AmalVR avatar AmalVR commented on May 23, 2024

Yes you are right, that is a proxy.

from docker-windows-box.

StefanScherer avatar StefanScherer commented on May 23, 2024

So you have to skip the proxy to let the docker cli talk to the local VM directly.
Are there environment variables HTTP_PROXY and/or HTTPS_PROXY set in your terminal?
PowerShell: ls env:HTTP*
cmd: set HTTP

If yes, unset them and try again.

from docker-windows-box.

AmalVR avatar AmalVR commented on May 23, 2024

Yes I have set the HTTP_PROXY and HTTPS_PROXY Environment Variable. I shall try as you said.

from docker-windows-box.

AmalVR avatar AmalVR commented on May 23, 2024

Hi Stefan,

I unset the proxy and found docker -H tcp:// info working. Thanks for your support.
But Docker might need these proxy for pulling images, as I am working behind the corporate proxy. In Windows 10 we can configure the Docker Environment using the CLI -Settings Tabs. How can we set the same in the nodes we have created?

from docker-windows-box.

StefanScherer avatar StefanScherer commented on May 23, 2024

Good news that it works now.
Well, you have to add a provision script to set these variables during the creation of the VM's.
Create a new script in swarm-mode/scripts/set-proxy.ps1 with eg.

setx /M HTTP_PROXY https://yourproxyip:port
setx /M HTTPS_PROXY https://yourproxyip:port
restart-service docker

and add this to the swarm-mode/Vagrantfile as additional provision step.

   config.vm.provision "shell", path: "scripts/set-proxy.ps1"

from docker-windows-box.

AmalVR avatar AmalVR commented on May 23, 2024

I have had already used a power shell script and added it in the vagrant script and used it to provision the nodes and that is how I had set the proxy and I was able to pull the images in docker after that.
But now we are un-setting the proxy variables in the node right? So after that we may not be able to pull the images.

from docker-windows-box.

StefanScherer avatar StefanScherer commented on May 23, 2024

Hm, it seems difficult. The global system environment variable is needed for the Docker service.
In the user terminal window you have to unset the environment variable to talk to the Docker endpoint.

I don't know if that works on Windows as well, but try to set NO_PROXY environment variable to something like localhost,127.0.0.0/8,192.168.36.0/24.

from docker-windows-box.

StefanScherer avatar StefanScherer commented on May 23, 2024

Closing due to inactivity.

from docker-windows-box.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.