DEV Community

loading...
Cover image for Docker Desktop on Windows expose daemon to LAN

Docker Desktop on Windows expose daemon to LAN

Abhishek
Ju5t @n07h3r Pr0gr@mm3r
・1 min read

Steps :

  • Enable "Expose daemon on tcp://localhost:2375 without TLS" in settings.
  • From admin Command Prompt
netsh interface portproxy add v4tov4 listenport=2375 listenaddress=192.168.0.2 connectaddress=127.0.0.1 connectport=2375
Enter fullscreen mode Exit fullscreen mode

NOTE : replace listenaddress to your LAN ip

  • On Remote machine Set DOCKER_HOST to tcp://192.168.0.2:2375

Discussion (0)