Execute command. Install a package inside n8n docker

Is there a way to install package on a host machine from browser? I want to install ffmpeg and run it via Execute command node. im running n8n in docker container

Information on your n8n setup

  • 1.95.3
  • Postgres
  • Docker
  • Ubuntu

Hey @Aintermed ,

Have you tried playing around with the Execute command node?

Note that this node is only available on self hosted n8n version and not on cloud so i guess in your case its fine

Use the below command to start the n8n container with ffmpeg. Adjust the localhost thing according to the domain you are using. This command is using the docker volume called n8n_data. Adjust it according to your volume name

docker run -it --rm `
  --name tender_moore `
  -p 5678:5678 `
  -e N8N_PORT=5678 `
  -e N8N_HOST=localhost `
  -e WEBHOOK_TUNNEL_URL=http://localhost:5678 `
  -e N8N_BINARY_DATA_MODE=filesystem `
  -v n8n_data:/home/node/.n8n `
  --user 0 `
  --entrypoint sh `
  n8nio/n8n:latest `
  -c "apk add --no-cache ffmpeg && su node -c 'n8n'"
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.