I am having trouble debugging my project in VSCode. I am getting the following error when attempting a debug:
Executing task: xonsh .conf/validate-deps-running.xsh
/home/sabrahamian/.local/pipx/venvs/xonsh/lib/python3.11/site-packages/xonsh/environ.py:2816: DeprecationWarning: env: Setting deprecated env variable 'RAISE_SUBPROC_ERROR'. Replace it to 'XONSH_SUBPROC_CMD_RAISE_ERROR'.
self._set_item(key, val)
⚠️ VALIDATING ENVIRONMENT
OS: Linux
OS Version: 6.18.33.1-microsoft-standard-WSL2
OS Arch: x86_64
Under WSL: Torizon
VS Code:
1.125.1
fcf604774b9f2674b473065736ee75077e256353
x64
TOR Extension: toradex.apollox-vscode@3.6.0
❌ Docker container registry is not using port 5002!
Maybe there is some conflict with another container using the same name/port
Error cause: Not configured
* The terminal process "xonsh '.conf/validate-deps-running.xsh'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
When looking at what process has reserved port 5002 I found this:
C:\Windows\System32>netstat -aon | findstr :5002
TCP 0.0.0.0:5002 0.0.0.0:0 LISTENING 11820
C:\Windows\System32>tasklist /FI "PID eq 11820"
Image Name PID Session Name Session# Mem Usage
========================= ======== ================ =========== ============
svchost.exe 11820 Services 0 4,404 K
Results of tdx-info:
torizon@verdin-am62-15600960:~$ sudo tdx-info
Password:
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 6.6.119-7.5.0-gf1f810e373a1 #1-Torizon SMP PREEMPT Fri
Dec 12 14:50:07 UTC 2025
Kernel command line: root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo v
t.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ost
ree=/ostree/boot.1/torizon/e76a56a5773fe116fb14057ad60f27ff78d4262fc1f5af17ed330
042685004bc/0
Distro name: NAME="Torizon OS"
Distro version: VERSION_ID=7.5.0-build.30
Distro variant: VARIANT="Docker"
Hostname: verdin-am62-15600960
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Toradex Verdin AM62 on Verdin Development Board
Toradex version: 0074 V1.2A
Serial number: 15600960
Processor arch: aarch64
------------------------------------------------------------
I tired following the instructions from this thread.
I checked the Torizon IDE startup tasks run-docker-registry, run-torizon-binfmt, and run-share-wsl-ports all report that each task succeeded.
I ran the docker login command, successfully logged in, and ran the following command:
docker run --rm -it --privileged torizon/binfmt:latest
And I got the following response:
Unable to find image ‘torizon/binfmt:latest’ locally
latest: Pulling from torizon/binfmt
8aabc323a91f: Pull complete
26b478ce1ac7: Pull complete
06f8d3fb0cee: Pull complete
Digest: sha256:4341763f8efc917a9ca02dfb9f6f0fdf53116a6358dcab0b363a03c6a0f69788
Status: Downloaded newer image for torizon/binfmt:latest
WARNING: The requested image’s platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
exec /usr/bin/binfmt: exec format error
This initial error is confusing, I then checked my arm emulation with this command:
docker run --rm -it --pull always --platform linux/arm64/v8 debian arch
I got the reply:
latest: Pulling from library/debian
ed660e1af0f5: Pull complete
Digest: sha256:fe7312b5f05bf5f43fad76bcd8945642e4e47a68aefd1b73f447615899d0fac1
Status: Downloaded newer image for debian:latest
aarch64
So there shouldn’t be an issue here. I checked to see if the registry is running with the following command:
docker ps | grep registry
I got no response. So I attempted to restart the registry with the following commands:
🐧 sabrahamian @MU69-PC~/mudelcontroller: docker stop registry || true
Error response from daemon: No such container: registry
🐧 sabrahamian @MU69-PC~/mudelcontroller: docker rm registry || true
Error response from daemon: No such container: registry
🐧 sabrahamian @MU69-PC~/mudelcontroller: docker run -d -p 5002:5000 --restart=always --name registry registry:2
Unable to find image ‘registry:2’ locally
2: Pulling from library/registry
95459497489f: Pull complete
8bbaad1488a8: Pull complete
9a6b3f59ebc2: Pull complete
bd39ca3613a6: Pull complete
ddcb6d98388d: Pull complete
Digest: sha256:a3d8aaa63ed8681a604f1dea0aa03f100d5895b6a58ace528858a7b332415373
Status: Downloaded newer image for registry:2
bf06403ffa5ed78a64193b0ead937f2dc1e50d81f3eb1d18ac46b2843db0d224
I then reloaded the VSCode window and still got the same error that I received initially. What am I doing wrong?
