Comments (11)
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.
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.
Hm, strange. Is that a proxy (10.177.38.133) in between?
from docker-windows-box.
Yes you are right, that is a proxy.
from docker-windows-box.
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.
Yes I have set the HTTP_PROXY and HTTPS_PROXY Environment Variable. I shall try as you said.
from docker-windows-box.
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.
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.
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.
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.
Closing due to inactivity.
from docker-windows-box.
Related Issues (20)
- I followed the instructions to end up with a vmware box, which I added with vagrant, and can see in list, but can't bring up machine HOT 1
- docker-machine cant on windows server? HOT 4
- Packer build HOT 11
- Waiting for WinRM to become available HOT 10
- VMWare-iso with packer build fails HOT 10
- Update virtualbox fails HOT 7
- vagrant up? HOT 4
- Modify packer to use iso file HOT 4
- Question about overlay network HOT 3
- Kubernetes? HOT 5
- different vagrantfile HOT 5
- Not really an issue - But missing item in pre-req HOT 2
- Problem using your docker-windows-box HOT 2
- Blank black screen with cmd only HOT 6
- [TODO] vmware-iso: Could not find networking conf file: /Library/Preferences/VMware Fusion/networking HOT 7
- Docker Daemon ExecStart initial value has changed? HOT 2
- Licensing
- Error upon vagrant up Mac OSX HOT 1
- Dependencies HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-windows-box.