Closed hallux4 closed 5 months ago
Thank you for the quick reply. This solution doesn't work for 80/443 I guess I tried yesterday, did it again to present the following output.
FYI antivirus disabled firewall disabled
C:\WINDOWS\system32>net stop winnat
The Windows NAT Driver service was stopped successfully.
docker compose up -d
...
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2c7c13d8e563 nginx "/docker-entrypoint.…" 7 minutes ago Up 4 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp snap-camera-server-321-webproxy-1
f69c969527be snap-camera-server-321-webapp "docker-entrypoint.s…" 7 minutes ago Up 4 minutes 0.0.0.0:5645->5645/tcp snap-camera-server-321-webapp-1
b7a07fbf5b9d adminer "entrypoint.sh php -…" 7 minutes ago Up 4 minutes 0.0.0.0:8080->8080/tcp snap-camera-server-321-adminer-1
d399426bcfa4 mysql:8.0 "docker-entrypoint.s…" 7 minutes ago Up 4 minutes 0.0.0.0:3306->3306/tcp, 33060/tcp snap-camera-server-321-mysql-1
C:\WINDOWS\system32>net start winnat
System error 32 has occurred.
The process cannot access the file because it is being used by another process.
docker compose down
...
C:\WINDOWS\system32>net start winnat
The Windows NAT Driver service was started successfully.
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
^C
--- 8.8.8.8 ping statistics ---
8 packets transmitted, 0 received, 100% packet loss, time 7277ms
Then I have to reset everything and reboot my desktop (maybe there's another way, I dunno). It would help if someone knew ^^
I'm ok if you close the issue, the problem clearly comes from Windows or/and Docker desktop. I'll just create a Debian virtual server with a bridge connection.
Thanks for your time :-)
Sorry, I don't have experience with Winnat
Hello,
I tried all morning to find a solution to run the nginx proxy on port 80 and 443 without success. I previously populated the config files with AutoConfig.exe from Windows Then I started the stack from Ubuntu (WSL2), it uses docker desktop (from the windows host)
It seems related to winnat.
I tried to stop it.
It's then possible to start the containers. But by doing so, my WSL container lost internet access. To recover I executed these commands.
I didn't find if it's related to docker or windows (or both) I can spin an apache2 server on ports 80/443 from my WSL2 Ubuntu without issue. But from docker, no.
It's possible to start the nginx proxy container by modifying these files.
But then, is it possible to connect snap camera to it ?
Regards