I’m experiencing what I believe is the same issue as this post and have been unable to resolve it. I suspect it’s a Windows firewall issue and have reached out to our corporate IT for support, however they have been unable to resolve it.
Here’s the output from vscode when the module attempts to pull the image:
* Executing task: DOCKER_HOST=192.168.10.1:2375 LOCAL_REGISTRY=192.168.10.10 DOCKER_LOGIN=192.168.10.10:5002 TAG=v0.0.0 GPU=-am62 DEBUG_SSH_PORT=2230 DEBUG_PORT1= DEBUG_PORT2= DEBUG_PORT3= docker compose pull network_manager_test
WARN[0000] /home/torizon/networkmanagertest/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Pulling 1/1
! network_manager_test Warning Get "http://192.168.10.10:5002/v2/": net/http: request canceled while waiting for connection (Clien... 30.1s
WARNING: Some service image(s) must be built from source by running:
docker compose build network_manager_test
1 error occurred:
* Error response from daemon: Get "http://192.168.10.10:5002/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
* The terminal process "/usr/bin/bash '-c', 'DOCKER_HOST=192.168.10.1:2375 LOCAL_REGISTRY=192.168.10.10 DOCKER_LOGIN=192.168.10.10:5002 TAG=v0.0.0 GPU=-am62 DEBUG_SSH_PORT=2230 DEBUG_PORT1= DEBUG_PORT2= DEBUG_PORT3= docker compose pull network_manager_test'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
When I test in wsl with curl using localhost I get a response:
🐧 torizon @STERIS-US-x3Jes~: curl http://localhost:5002/v2
<a href="/v2/">Moved Permanently</a>.
But if I test in wsl with curl using the IP address it times out:
🐧 torizon @STERIS-US-x3Jes~: curl http://192.168.10.10:5002/v2/
curl: (28) Failed to connect to 192.168.10.10 port 5002 after 133517 ms: Couldn't connect to server
It times out when tested from the device side as well:
torizon@verdin-am62-15601305:~$ curl http://192.168.10.10:5002/v2
curl: (28) Failed to connect to 192.168.10.10 port 5002 after 135016 ms: Couldn't connect to server
The output from the iptables command run in a new wsl terminal is:
🐧 torizon @STERIS-US-x3Jes~: sudo iptables -L -v -n
[sudo] password for torizon:
Chain INPUT (policy ACCEPT 17589 packets, 36M bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 DOCKER-USER 0 -- * * 0.0.0.0/0 0.0.0.0/0
0 0 DOCKER-FORWARD 0 -- * * 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 19589 packets, 20M bytes)
pkts bytes target prot opt in out source destination
Chain DOCKER (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT 6 -- !docker0 docker0 0.0.0.0/0 172.17.0.2 tcp dpt:5002
0 0 DROP 0 -- !docker0 docker0 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-BRIDGE (1 references)
pkts bytes target prot opt in out source destination
0 0 DOCKER 0 -- * docker0 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-CT (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT 0 -- * docker0 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
Chain DOCKER-FORWARD (1 references)
pkts bytes target prot opt in out source destination
0 0 DOCKER-CT 0 -- * * 0.0.0.0/0 0.0.0.0/0
0 0 DOCKER-ISOLATION-STAGE-1 0 -- * * 0.0.0.0/0 0.0.0.0/0
0 0 DOCKER-BRIDGE 0 -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT 0 -- docker0 * 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-ISOLATION-STAGE-1 (1 references)
pkts bytes target prot opt in out source destination
0 0 DOCKER-ISOLATION-STAGE-2 0 -- docker0 !docker0 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-ISOLATION-STAGE-2 (1 references)
pkts bytes target prot opt in out source destination
0 0 DROP 0 -- * docker0 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-USER (1 references)
pkts bytes target prot opt in out source destination
wsl release info:
🐧 torizon @STERIS-US-x3Jes~: cat /etc/os-release
PRETTY_NAME="Torizon Development Environment for WSL 2"
NAME="TorizonOS"
VERSION=1.0.3
VERSION_CODENAME="Development Environment for WSL 2 (Debian Bookworm)"
ID=torizon
VERSION_ID=1.0.3
VARIANT=Docker
HOME_URL="https://www.torizon.io"
SUPPORT_URL="https://community.toradex.com"
BUG_REPORT_URL="https://github.com/torizon/cookbook-torizon-wsl/issues"
🐧