I'm trying to debug my code in a docker container on my local PC. I set up a remote interpreter to use docker compose which pulls up the container as I expect it, but stops it after a few secs of waiting cause the debugger times out trying to connect to the remote python debugger. Might worth to mention that I need GPU capabilities to debug my code, so I had to edit the system-wide docker settings to use the nvidia runtime by default. My understanding is that this shouldn't affect non-GPU capable dockers, or the networking in them whatsoever. Since docker is on my own PC I set up a normal Python run/debug cfg, not a remote python debug cfg.
My compose.yml specifies network_mode: "host".
All the output I get is:
Connection to Python debugger failed: Connection to the debugger script at 127.0.0.1:50480 timed out