Skip to main content
An old wooden rowboat moored tight with a rope to an iron ring on a stone pier while a second rowboat has slipped its frayed rope and drifted out onto a misty indigo lake at dawn, a metaphor for pinning the n8n Docker image instead of floating on the latest tag
9 min readBy Carlos Aragon

n8n Docker latest Is Now 3.x: Pin It or Roll Back

As of December 3, 2026, docker pull n8nio/n8n gives you n8n 3.4.3. The latest and stable tags moved off 2.x this morning, so any compose file without a version, and any Watchtower-style auto-updater, will upgrade you to n8n 3 on its next pull. If you want to stay on 2.x, pin n8nio/n8n:2.50.6 (or the floating n8nio/n8n:2). If it already happened, the upgrade itself is quiet. What bites is a handful of new defaults. I ran the upgrade and the rollback in Docker a few hours after the tags moved, and here's what broke and how to undo it.

Did My n8n Just Upgrade to 3.x?

Only if your container was recreated from a fresh pull after about 09:05 UTC today. Docker Hub shows latest and stable updated at 09:07 UTC on December 3 with digest sha256:ea94f42e49ab…, which is exactly the 3.4.3 tag. The n8n Docker install docs now say "Current stable: 3.4.3, Current beta: 3.5.2". Yesterday stable was 2.50.6.

# what you run today
docker exec n8n n8n --version

# what "latest" means right now (both match the 3.4.3 tag)
curl -s https://hub.docker.com/v2/repositories/n8nio/n8n/tags/latest | grep -o '"digest":"[^"]*"' | head -1
curl -s https://hub.docker.com/v2/repositories/n8nio/n8n/tags/3.4.3  | grep -o '"digest":"[^"]*"' | head -1

The tags you can pin to are 2.50.6 and 2. I checked the registry for every shorthand people tend to guess: n8nio/n8n:2 exists and points to 2.50.6, while :3, :v2, :v3, :2.50 and :3.4 all return 404. So "stay on the newest 2.x" is :2, and "stay on exactly what I tested" is the full version.

If you're still deciding whether to move at all, I covered the node removals in the n8n 3 breaking changes post and how to read the built-in report in the n8n 3 Migration Report walkthrough. This post is about the day the default tag flipped.

What Happens When 3.4.3 Boots on a 2.x Volume?

Less than you'd think. My test instance was a SQLite volume seeded on 2.50.6 with a published webhook workflow: Webhook, then an HTTP Request node with a header-auth credential calling a local stub, then a Code node. I stopped it, started n8nio/n8n:3.4.3on the same volume, and the webhook answered 200 seven seconds later with the credential's header still arriving at the stub. The encryption key in the volume's config file carried over, so credentials decrypted fine.

Migrations in progress, please do NOT stop the process.
Starting migration CreateProjectWorkflowReviewSettingsTable1795450721000
...
Finished migration CreateAgentAttentionFlags1795546358454
Recorded version change: 2.50.6 -> 3.4.3
Version: 3.4.3
Editor is now accessible via:

From 2.50.6 it's only 4 migrations.The 2.x line has been shipping the same schema changes as 3.x for weeks, so a recent 2.x is already close. From an older 2.38.3 volume it was 132 migrations, still done in about 9 seconds on a small SQLite file. A big Postgres database with millions of execution rows will take longer, so don't kill the container while it prints "Migrations in progress".

Removed nodes are the other upgrade risk, and that one depends on your workflows, not on the image. Run the Migration Report on 2.x first. Then look at the defaults.

Which Defaults Changed Between 2.50.6 and 3.4.3?

I loaded n8n's own config classes inside both images and diffed every resolved value. These are the differences that can change how a running workflow behaves:

Setting2.50.63.4.3What it hits
N8N_RUNNERS_TASK_TIMEOUT300 s60 sCode nodes that call slow APIs, loop pages, or crunch big arrays
N8N_UNVERIFIED_PACKAGES_ENABLEDtruefalseInstalling any community node that isn't on n8n's vetted list
Compression node max decompressed size2 GiB256 MiBUnzipping big exports or backups inside a workflow
Compression node max zip entries5,0001,000Archives with lots of small files
Content-Security-Policy (editor)report-onlyenforcedCustom scripts or proxies that inject JS into the editor
Instance AI workflow suggestionsonoffOnly the AI suggestions feature, not your workflows
SSRF blocklist (if you turn SSRF protection on)private ranges+ 100.64.0.0/10 and 3 IPv6 rangesHTTP Request calls to Tailscale IPs once SSRF protection is enabled

The 2.50.6 container actually warns you about most of these at startup, as deprecation notices ("The default for this variable will be reduced from 300 (5 minutes) to 60 (1 minute) in a future version"). On 3.4.3 those warnings are gone, because the future arrived. If nobody reads your container logs, this is the first you've heard of it.

SSRF protection is still off by default in both. The blocklist grew, but it only applies if you set it on. If you do, note that 100.64.0.0/10 is the range Tailscale uses, so HTTP Request calls to Tailscale IPs will start failing unless you allow them.

What Broke in My Tests?

Same volume, same workflows, before and after the image swap:

Test2.50.63.4.3
Boot on the old volume, first webhook 2006 s7 s (4 migrations from 2.50.6, 132 from 2.38.3)
Webhook + HTTP Request with header-auth credential200, header sent200, credential still decrypts
Code node that waits 75 s200 after 75.1 s500 after 60.1 s
Same, with N8N_RUNNERS_TASK_TIMEOUT=300-200 after 75.1 s
Unverified community node installed on 2.xrunsstill runs
Install a new unverified community nodeinstalls400 "not vetted for installation"
Same, with N8N_UNVERIFIED_PACKAGES_ENABLED=true-installs

The 60-second Code node

This is the one I'd bet hits the most people. A Code node that awaits 75 seconds returned {"sleptMs":75002} on 2.50.6. On 3.4.3 the webhook came back as a 500 Error in workflow at 60.1 seconds, and the execution held this:

TaskRunnerExecutionTimeoutError: Task execution timed out after 60 seconds
  at TaskBroker.handleTaskTimeout (.../task-broker/task-broker.service.ts:676:7)

Anything that paginates an API inside one Code node, waits on a slow API or LLM call, or chews through a big array lands here. The fix is one env var: with N8N_RUNNERS_TASK_TIMEOUT=300the same run finished in 75.1 seconds. Don't confuse it with "Task request timed out", which is a runner that never picked the task up. I broke that one down in the task request timeout post, which was written against 2.x, where the execution timeout default was still 300.

Community nodes: old ones live, new ones blocked

I installed n8n-nodes-text-manipulationon 2.50.6 through the API. It's a popular package that isn't on n8n's vetted list (1,455 packages when I pulled it today). After the upgrade, the workflow using it still ran and returned {"upper":"CARLOS"}. Then I tried to install a second unverified package on 3.4.3:

{"code":400,"message":"Package n8n-nodes-globals is not vetted for installation"}

Existing installs survive, new unverified installs are refused until you set N8N_UNVERIFIED_PACKAGES_ENABLED=true. With that set, the same install went through. If you rebuild containers from scratch with N8N_REINSTALL_MISSING_PACKAGES, test that path too before you rely on it.

How Do I Pin n8n to 2.x?

Put a real version in the image line. While you're in there, set the two defaults you rely on explicitly, so the day you do move to 3.x nothing changes underneath you:

services:
  n8n:
    image: n8nio/n8n:2.50.6        # was: n8nio/n8n  (= latest = 3.4.3 now)
    labels:
      - com.centurylinklabs.watchtower.enable=false   # if Watchtower runs here
    environment:
      # set these BEFORE you move to 3.x, so the upgrade changes nothing you rely on
      - N8N_RUNNERS_TASK_TIMEOUT=300
      - N8N_UNVERIFIED_PACKAGES_ENABLED=true

If you run task runners in external mode, pin n8nio/runners to the same version. n8n's update guide says the runners image has to match the n8n image, and in queue mode every main, worker and webhook process has to run the same version. A worker that pulled latest while main stayed on 2.x is the worst version of today.

My rule for client instances: never latest in production.I pin the exact tag, upgrade on a copy of the volume first, and only then bump the pin. It's the same reason I keep workflows in git without Enterprise: I want to know exactly what changed and when.

Can I Roll Back From n8n 3 to 2?

Yes, back to 2.50.6 or 2.49.9, if you do it the supported way. The update guide is explicit that changing the image tag back doesn't reverse database migrations. The supported tool is n8n db:revert, run with the newer image, one migration per run:

# 1. stop every n8n process (main, workers, webhook processors)
docker compose stop n8n

# 2. revert ONE migration per run, using the NEWER image and the same volume/DB env
docker run --rm -v n8n_data:/home/node/.n8n n8nio/n8n:3.4.3 db:revert
#    "Migration CreateAgentAttentionFlags1795546358454 has been reverted successfully."
#    repeat until this matches the name you noted before upgrading:
#    SELECT name FROM migrations ORDER BY id DESC LIMIT 1;

# 3. start the old image
#    image: n8nio/n8n:2.50.6
docker compose up -d n8n

On my 2.50.6 to 3.4.3 volume, four db:revertruns removed the four new migrations, each printing "reverted successfully", and the newest migration was back to CreateAgentExecutionStatistics1795444905000, which is where 2.50.6 left it.

Where db:revert stops

Not every migration can go backwards. I loaded the migration lists inside the 3.4.3 image and checked each of the 132 migrations between 2.38.3 and 3.4.3 for a down method. 11 have none, on both SQLite and Postgres. The newest of them, AddMigrationReportScopeToCustomInstanceRoles1795177275551, happens to be the last migration in 2.49.9. So db:revertcan take a 3.4.3 database back to the 2.49.9 or 2.50.6 schema. If you were on anything older, it stops with "The last migration ... was irreversible" and your backup is the only way back.

What about just swapping the tag back?

I tried it, to see how bad it is. 2.50.6 started on the 3.4.3-migrated volume, ran the webhook and the community node, and went back to report-only CSP. Even 2.38.3 started on a database that 3.4.3 had migrated 132 steps forward, and its REST API listed workflows, credentials and executions without complaint. Don't read that as safe.My test database was tiny and had never used a 3.x feature. An old binary on a newer schema can write rows the new columns don't expect, and nobody tests that path. If you're choosing between fast and supported here, take supported.

What Should I Back Up Before Moving to 3.x?

  • The whole .n8n volume. It holds the config file with your encryption key unless you set N8N_ENCRYPTION_KEY. Lose that and every credential is junk, rollback or not.
  • A database dumpif you're on Postgres, since the volume copy doesn't cover it.
  • The newest migration name: SELECT name FROM migrations ORDER BY id DESC LIMIT 1; That's your stop sign for db:revert.
  • Your compose file and env. If any env var in it is one the 2.x env-access changes already bit you on, expect the same care here.

Then upgrade a copy, not the real thing. A cp -Rof the volume plus a second container on another port is a ten-minute test, and it's how every number in this post was measured.

How I Tested This

Official images n8nio/n8n:2.50.6, 3.4.3 and 2.38.3 on Docker Desktop for Mac, SQLite, a Python HTTP stub on the host for the credential check, and cp -Rsnapshots of the volume between every step. Default values come from instantiating n8n's GlobalConfig and community packages config inside each image, and reversibility comes from checking prototype.downon every migration class the 3.4.3 image ships. I didn't test Postgres or queue mode end to end, and n8n Cloud isn't affected by Docker tags at all. If you're still weighing hosting, I compared the two in n8n Cloud vs self-hosted.

n8n Upgraded Itself Overnight?

I run self-hosted n8n for clients and move them between versions on a copy first, with the timeouts, community nodes and credentials checked before anything touches production. If your instance just jumped to 3.x, or you want a pinned, tested upgrade path, tell me what you're running.

Related Posts