Easy n8n Local Install on Windows for Free: Docker Setup

Installing n8n locally on a Windows PC is one of the fastest ways to test automation workflows, AI agents, webhooks, and app integrations without paying for cloud hosting right away. The easiest setup is Docker Desktop because it runs n8n in a clean container, keeps the app separate from your Windows system, and makes updates easier later.

Quick Answer

You can run n8n locally by installing Docker Desktop, pulling the official n8n image, and running it with port 5678 mapped to your computer. Map a local folder to /home/node/.n8n so workflows, credentials, and settings stay saved after restarts.

Key Takeaways

  • Docker Desktop is the simplest local setup method for most Windows users.
  • Use the official image name docker.n8n.io/n8nio/n8n when pulling n8n.
  • Map host port 5678 to container port 5678 to open the editor at http://localhost:5678.
  • Always bind a local folder to /home/node/.n8n so your workflows and settings persist.
  • Local n8n is best for testing. Use cloud hosting for workflows that must run all day.

At a Glance

Time Required About 5 to 15 minutes after Docker Desktop is installed
Difficulty Beginner friendly
Tools Needed Windows PC, Docker Desktop, web browser, and internet connection
Cost Free for local testing, unless you choose paid n8n features or paid hosting later

Before you start, make sure your Windows PC supports Docker Desktop. Most modern Windows 10 and Windows 11 machines work well with the WSL2 backend. You should also have administrator access because Docker may need permission to install system components.

Step 1: Download and Install Docker Desktop

Docker creates a contained environment for n8n. It keeps the application files, libraries, and settings separate from your main Windows system, which helps the software run predictably every time.

How to get Docker Desktop:

  • Visit the official Docker website and download the installer for Windows.
  • Select the installer that matches your system. The WSL2 version is the best choice for most modern computers.
  • Save the installer in a folder you can easily find, such as Downloads.

Docker Desktop download page with platform options

Double-click the downloaded file and follow the on-screen prompts. Most users can keep the default settings because Docker Desktop automatically chooses the recommended configuration for a standard local setup.

Windows Docker installer starting installation

Important setup notes:

  • Restart your PC if Docker does not open immediately after the install finishes.
  • Accept the license agreement when you first open the app.
  • Choose the recommended settings and skip the optional sign-in or welcome survey if you do not need a Docker account for this local setup.
  • Wait until Docker Desktop shows that the engine is running before you continue.

Docker Desktop first run and agreement screen

Note: If Docker asks to enable WSL2 or install extra Windows components, allow it to finish. n8n will not run correctly until Docker Desktop itself is fully working.

Step 2: Pull the n8n Docker Image

You must download the official n8n image to your machine. This image contains the application files needed to run n8n inside Docker.

In Docker Desktop:

  1. Select the Images tab.
  2. Search for “n8n” in the search bar.
  3. Click Pull to download the official n8nio/n8n image.
Tip: You can also use the command line. Run docker pull docker.n8n.io/n8nio/n8n to download the latest version directly from the official registry.

Docker Desktop images tab searching for n8n

The application appears in your local images list once the process finishes. If the pull fails, check your internet connection and make sure Docker Desktop is running before trying again.

n8n image listed in Docker Desktop after pull

Step 3: Configure and Run the n8n Container

Now you create a container from your image. A container is the running version of n8n with its own storage and network settings.

Click the Run icon next to your n8n image to open the configuration menu:

  • Container Name: Name your container something simple, like “n8n”.
  • Ports: Map host port 5678 to container port 5678 using 5678:5678.
  • Host Path: Create a folder on your computer to save your data. For example, use a folder such as C:\Users\YourName\n8n-data.
  • Container Path: Set this to /home/node/.n8n. This step keeps your workflows, credentials, and settings safe when you restart the app.

Docker run dialog with container name and port settings for n8n

Warning: Do not skip the folder mapping step. If you run n8n without persistent storage, you may lose workflows or settings when the container is removed or recreated.

Click Run to initialize the application. Docker will start the container and assign the port you selected.

Running n8n container in Docker Desktop

If the app does not load in your browser, another service might be using port 5678. Stop the container and try a different host port, like 5688. In that case, map host port 5688 to container port 5678, then open http://localhost:5688.

Pro Tip: Keep your container name short and clear. A simple name like n8n makes later commands easier, such as docker stop n8n, docker start n8n, and docker logs -f n8n.

Step 4: Access the n8n Editor

Once the container starts, Docker displays a status message confirming that the editor is accessible. Open your browser and go to http://localhost:5678.

Docker status message: Editor accessible via localhost:5678

Follow the prompts on the screen to set up your owner account with your email and a secure password. This account protects the local editor from casual access on your machine.

n8n welcome screen and owner account setup

After setup, you can create your first workflow from the dashboard. Start with a simple manual trigger and one action node so you can confirm that your local instance works before connecting outside services.

Step 5: Activate Your License Key

You can unlock paid features if you have an activation key. Open your dashboard and go to Settings, then Usage and Plan. Paste your key and click Activate.

Requesting a free license key from n8n dashboard

Ensure the N8N_HIDE_USAGE_PAGE setting is not set to true in your Docker configuration if you cannot see the activation menu.

Activation key entry and successful activation in n8n

Note: You do not need a paid license key to learn n8n locally. You can build and test basic workflows first, then activate extra features only if your use case requires them.

Step 6: Resolve Common Connection Problems

If you see a site unreachable error, first check if the container is running. Open the Containers tab in Docker Desktop and click the Start button for your n8n instance.

Docker Desktop containers tab showing start/restart icon

If the app still fails to load, click on the container and select Logs. The logs display specific errors like port conflicts, permission issues, or failed startup messages.

Common fixes

  • Container is stopped: Start it from Docker Desktop or run docker start n8n.
  • Port conflict: Change the host port from 5678 to another port, such as 5688.
  • Docker engine not running: Restart Docker Desktop and wait until it shows that the engine is active.
  • Permission issue: Make sure the local data folder exists and your Windows user can write to it.
  • Browser cache issue: Try a private browser window or open the local URL in another browser.

Step 7: Why Move Your Automations to the Cloud

Local instances work best for testing, learning, and building early workflow ideas. However, production workflows require 24/7 reliability. Cloud hosting keeps your automations running even when you turn off your PC.

Benefits of cloud hosting:

  • Reliable uptime for time-based triggers.
  • Better security with managed SSL and firewalls.
  • Accessibility from any location.
  • Easier webhook access for apps that need to reach your n8n instance from the internet.
  • Less risk of workflows stopping because your laptop sleeps, restarts, or loses power.

If your workflow handles real customers, payments, alerts, leads, or business data, move it to a stable cloud setup before relying on it every day.

Step 8: Manage Your n8n Instance with Docker Commands

You can use the terminal for faster management. Use these commands to control your instance:

  • docker stop n8n to pause your instance.
  • docker start n8n to resume your instance.
  • docker ps to see all active containers.
  • docker logs -f n8n to check real-time system activity.

These commands are helpful when you want to restart n8n quickly, check whether the container is running, or troubleshoot a workflow that suddenly stops responding.

Step 9: Update Your n8n Version

Always keep your installation updated for security and new features. Stop and remove the old container, pull the latest image using docker pull docker.n8n.io/n8nio/n8n, and run a new container with your existing folder mappings.

The important part is keeping the same host folder mapped to /home/node/.n8n. That folder holds your local n8n data. When you recreate the container with the same folder mapping, your saved workflows and settings should remain available.

Warning: Before updating, stop the container cleanly and back up your mapped n8n data folder. This gives you a recovery copy if a version change or configuration mistake causes problems.

Sources

  1. n8n Docker installation documentation — official Docker setup guidance and image details.
  2. n8n environment variables documentation — configuration options, including usage page settings.
  3. Docker Desktop for Windows documentation — official Windows installation requirements and setup details.

Conclusion

Local installation gives you a fast environment for building and testing workflows. With Docker Desktop, you can run n8n on Windows, open the editor from your browser, and save your data through a persistent folder mapping. Start with a simple workflow, learn how the nodes connect, and move to cloud hosting once your automations need to run reliably around the clock.


Last Updated on June 27, 2026 by Logan Carter

Releted Post