0

I'm running a Docker container on Windows:

docker run -d -p 2001:8080
-v F:\Scan:/app/data/output
-e SANED_NET_HOSTS="192.168.1.200"
--restart unless-stopped
--name scanservjs
--privileged
sbs20/scanservjs:latest

This basically helps converting my Scanner into a Wifi Scanner.

I confirm 192.168.1.200 is definitely accessible (a raspberry pi on the same private network), and from the Host (Windows), I can ping 192.168.1.200 and telnet 192.168.1.200 6566 without any issues.

This was definitely working before, but for some reason (maybe due to Windows updates or so), my container no longer seems to be able to reach 192.168.1.200 at all. If I install ping on the container, ping 192.168.1.200 just hangs forever.

I've tried a number of things, such as trying some network settings (converting to docker-compose.yml and add some network settings, etc), but couldn't get anything to work so far. I tried --net=host, but then I don't seem to be able to access localhost:2001 or localhost:8080, so I was unable to do much.

I tried to temp disable Windows Firewall, but doesn't seem to resolve either.

Windows host -> raspberry pi [good]  
Docker container (in Windows host) -> raspberry pi [fail]

What could be the problem that prevents the Docker container from reaching 192.168.1.200, while the Windows host can without any problems?

Nuno
  • 461
  • 1
  • 5
  • 23

0 Answers0