Here’s my scenario:
- I have Portainer running in a Docker container on 1 machine on my local network (192.168.0.123).
- I also have Docker for Windows (uses Hyper-V) running inside of a VMWare VM, on a 2nd machine on the same local network (192.168.0.124).
- I want to add the endpoint in Portainer to connect to the Docker endpoint on that VM, so I can control it from the 1st machine.
So far I have tried:
Adding a forwarded port to 2375 on the 2nd machine (192.168.0.124) to the VM using VMWare’s Network Connection manager.
Using the 2nd machine’s IP + the forwarded port as the endpoint URL in Portainer (192.168.0.124:2375)
Making sure all firewalls on all machines are turned off.
If I try to connect to say, an Nginx container in the VM from the 2nd machine that hosts it, I can.
If I try to connect to that same Nginx container from the 1st machine, can’t connect.
I can connect to the forwarded IP and port if I directly test with: tnc 192.168.0.124 -port 2375
ComputerName : 192.168.0.124
RemoteAddress : 192.168.0.124
RemotePort : 2375
InterfaceAlias : Ethernet
SourceAddress : 192.168.0.123
TcpTestSucceeded : True
However, when I add that same IP + Port as an endpoint in Portainer, it says “Unable to ping Docker environment”.
Has anyone tried doing this before (and succeeded?)