Execute Command Node From Docker


What’s the best way or architecture to Execute Command
from a docker n8n ?
I mean the scripts wit the dependencies are gonna be on the host machine.

Thanks :wink:

Best is you use ssh for this :slight_smile:

1 Like

Hey @tiger360,

If the host machine has all the information you need then it would be a case of using SSH to access the host machine if that is possible. Although what you could also do depending on the scripts is map your script directory as a volume to your container and see if you can run them that way.

Another option might be to schedule the scripts on the host machine then post them to n8n using a webhook.

1 Like

Thank you for the answers :wink:.
Mapping would not be possible in my case I guess.
I need to run a playwright script not in headless mode.