n8n/docker/images/runners
2025-09-22 12:01:18 +03:00
..
Dockerfile ci: Include uv on the n8nio/runners image (#19830) 2025-09-22 12:01:18 +03:00
extras.txt ci: Support adding custom JS and Python dependencies in the runners image (#19220) 2025-09-08 09:16:10 +03:00
n8n-task-runners.json ci: Build and publish the n8n-io/runners image on Docker hub (#19035) 2025-09-04 11:54:14 +03:00
package.json ci: Support adding custom JS and Python dependencies in the runners image (#19220) 2025-09-08 09:16:10 +03:00
README.md docs: Deduplicate runners documentation (#19367) 2025-09-10 14:18:47 +02:00

n8n - Task runners (n8nio/runners) - (PREVIEW)

n8nio/runners image includes JavaScript runner, Python runner and Task runner launcher that connects to a Task Broker running on the main n8n instance when running in external mode. This image is to be launched as a sidecar container to the main n8n container.

Task runners are used to execute user-provided code in the Code Node, isolated from the n8n instance.

For official documentation, please see here.

For development purposes only, see below.

Testing locally

1) Make a production build of n8n

pnpm run build:n8n

2) Build the task runners image

docker buildx build \
  -f docker/images/runners/Dockerfile \
  -t n8nio/runners \
  .

3) Start n8n on your host machine with Task Broker enabled

N8N_RUNNERS_ENABLED=true \
N8N_RUNNERS_MODE=external \
N8N_RUNNERS_AUTH_TOKEN=test \
N8N_NATIVE_PYTHON_RUNNER=true \
N8N_LOG_LEVEL=debug \
pnpm start

4) Start the task runner container

docker run --rm -it \
-e N8N_RUNNERS_AUTH_TOKEN=test \
-e N8N_RUNNERS_LAUNCHER_LOG_LEVEL=debug \
-e N8N_RUNNERS_TASK_BROKER_URI=http://host.docker.internal:5679 \
-p 5680:5680 \
n8nio/runners

If you need to add extra dependencies (custom image), follow these instructions.