This is the time when I have to say thank you just for asking a question It is starting to make sense. There is an old issue:
The last comment that I linked explains an error which is related to too many connections. dial-stdio
is a non-documented argument which shouldn’t be called manually and it is proxying the standard io (stdin, stdout, stderr). It is probably required when you run a container and want to execcute a command in it remotely, but I agree, it shouldn’t be there when you don’t even use the context. If there is a good reason why it is running constantly, I don’t know that. My first thought was that it could be some kind of “keep-alived” mechanism, but there is nothing to keep alive in your case unles there is a process that is running and connecting to a remote containr even if you switched to another context in your current terminal session. Is it possible that you have a running process in the background and keeps the SSH connection to the remote context alive? Did you restart your machine or Docker Desktop recently?