Start a executable from Docker cotainer

Hello, i use node-red on a Docker, and i want to connect to my pc to run a command on it . How can i do that?
Thank you.

The easiest way is to NOT run node-red in docker. If you must, then that is really a docker issue (not a node-red issue). Search the internet for run program on host from docker client - e.g: How to run shell script on host from docker container? - Stack Overflow