Skip to content
Automation

Easy n8n Local Install on Windows for Free: Docker Setup

Easy n8n Local Install on Windows for Free: Docker Setup

You can install n8n locally on Windows with Docker Desktop and run automation workflows from your own computer. You need a working Docker installation, the official n8n image, port 5678, and persistent storage for your data. This guide shows you how to set up n8n, open the editor, create your first workflow, fix common errors, and update your installation safely.

Quick Answer

To run n8n locally on Windows, install Docker Desktop, pull the official n8n Docker image, and create a container using port 5678. Map a persistent Docker volume or Windows folder to /home/node/.n8n. Start the container, visit http://localhost:5678, and create your owner account.

Key Takeaways

  • Docker Desktop provides a convenient way to learn and test n8n locally on Windows.
  • Use the official n8n image, available as docker.n8n.io/n8nio/n8n.
  • The default editor address is http://localhost:5678.
  • Configure persistent storage to preserve workflows, credentials, and settings across container recreation.
  • n8n Community Edition is free. Optional registration unlocks additional free features.
  • For maintained or production installations, consider Docker Compose, reliable backups, and secure hosting.

At a Glance

Time RequiredVaries with Docker installation, download speed, and computer performance
DifficultyBeginner-friendly for local testing
Tools NeededCompatible Windows PC, Docker Desktop, WSL 2, web browser, and internet connection
Costn8n Community Edition is free. Docker licensing and third-party service costs depend on your usage.
Local Editor URLhttp://localhost:5678

Before You Start: Check Your Windows Requirements

Docker Desktop runs n8n inside a Linux container. On Windows, the recommended setup uses Windows Subsystem for Linux 2, also called WSL 2.

Before installing Docker, check these requirements:

  • A supported 64-bit Windows 10 or Windows 11 installation.
  • At least 8 GB of system RAM for Docker Desktop’s documented Windows requirements.
  • Hardware virtualization enabled in BIOS or UEFI.
  • A supported WSL 2 version, with WSL 2.1.5 or later recommended by Docker.
  • Enough free disk space to download Docker, the n8n image, and workflow data.
  • An internet connection for downloading software and connecting external services.

You can check your WSL installation by opening PowerShell and running:

wsl --version

If WSL is missing or outdated, open PowerShell with administrator privileges and run the appropriate command:

wsl --install
wsl --update

Run the installation command only if WSL is not already installed. Restart Windows when required.

Note: Docker Desktop offers different installation modes. A per-user installation can work without administrator rights, but enabling WSL 2 or changing certain system settings may still require administrator permission. Check the official Docker requirements for your Windows version.

Step 1: Download and Install Docker Desktop

Docker Desktop provides the container engine needed to run n8n on Windows. It keeps n8n’s runtime separate from your main Windows applications and simplifies container management.

How to download Docker Desktop:

  • Visit the official Docker Desktop for Windows installation guide.
  • Download the installer that matches your computer’s processor.
  • Save the installer in your Downloads folder.
  • Close unnecessary applications before beginning the installation.

Docker Desktop download page showing Windows installation options

Open the downloaded installer and follow the instructions. Choose the recommended WSL 2 backend when it is available for your installation mode.

Docker Desktop installer running on a Windows computer

Important setup notes:

  • Restart Windows or sign out if the installer asks you to do so.
  • Open Docker Desktop from the Start menu.
  • Review and accept the Docker Subscription Service Agreement.
  • Complete any required onboarding steps. Sign-in requirements can vary.
  • Wait until Docker Desktop confirms that its engine is running.
  • Use Linux containers, not Windows containers, for the n8n image.

Docker Desktop first launch and license agreement interface

Note: Docker Desktop is free for personal use, education, qualifying small businesses, and non-commercial open-source projects. Larger organizations and certain other users need a paid Docker subscription. Review Docker’s current terms before using it for business.

Step 2: Pull the Official n8n Docker Image

Next, download the n8n Docker image. This image contains the files needed to run the n8n application inside a container.

Using Docker Desktop:

  1. Open Docker Desktop.
  2. Select the Images section or the image search option.
  3. Search for the official n8nio/n8n image.
  4. Confirm that you selected the n8n image rather than an unrelated community image.
  5. Choose Pull to download it.

You can also pull the image directly from n8n’s official registry by opening PowerShell and running:

docker pull docker.n8n.io/n8nio/n8n
Tip: Using the complete registry address helps you identify the intended image source. For a long-term installation, consider pinning a tested stable image version instead of upgrading automatically to every new release.

Searching for the n8n Docker image in Docker Desktop

Wait until the download finishes. The image should then appear in Docker Desktop’s local images list.

Downloaded n8n Docker image displayed in the local images list

If the image download fails, confirm that Docker Desktop is running. Check your internet connection, firewall, or proxy settings before trying again.

Step 3: Configure and Run the n8n Container

After downloading the image, create a container to run n8n. A container uses the image along with your chosen port, storage, and environment settings.

Configure the Container in Docker Desktop

Find the downloaded n8n image and select Run. Open the optional settings or advanced configuration area if Docker Desktop provides one.

Use the following values:

  • Container Name: Use n8n so the container is easy to identify.
  • Host Port: Enter 5678.
  • Container Port: Use 5678.
  • Host Folder: Choose an existing folder that you control, such as C:\n8n-data.
  • Container Folder: Use /home/node/.n8n.

The port mapping is commonly written as 5678:5678. It connects the port on your Windows computer to the application inside Docker.

Make sure your chosen Windows folder exists and is writable. The container must also be able to access it. Windows file-sharing or Linux permission problems may prevent n8n from saving data.

Docker Desktop container configuration showing n8n port and storage settings

Warning: Always configure persistent storage. Without a persistent mount or volume, removing or recreating a container can permanently remove its workflows, credentials, execution data, and encryption settings.

Alternative: Use a Docker-Managed Volume

A Docker-managed volume is another way to preserve your n8n data. It avoids some Windows folder permission problems and is useful when starting the container through PowerShell.

First, create the volume:

docker volume create n8n_data

Then run this command in PowerShell:

docker run -d --name n8n --restart unless-stopped -p 127.0.0.1:5678:5678 -e GENERIC_TIMEZONE=Etc/UTC -e TZ=Etc/UTC -e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n

This command runs n8n in the background, names the container n8n, and stores its application data in the n8n_data volume. It also enables stricter configuration file permissions.

The example uses UTC for both timezone settings. Change GENERIC_TIMEZONE and TZ to your own supported timezone when you need schedules to follow local time. You must recreate the container to change these environment variables.

The address 127.0.0.1 restricts the published port to the local computer. This is preferable for a private learning environment because it avoids intentionally exposing the editor to other devices.

Choose one storage method: a Windows folder bind mount or a Docker-managed volume. You do not need to use both methods for the same n8n data directory.

Start the Container

If you configured the container through Docker Desktop, click Run. Docker starts n8n with the settings you selected.

n8n container running inside Docker Desktop

If port 5678 is already in use, stop the container and change the host port to an available alternative, such as 5688. Keep the container port at 5678.

With the alternative mapping 5688:5678, open http://localhost:5688 instead.

Pro Tip: Keep your container name simple. Using n8n makes commands such as docker stop n8n, docker start n8n, and docker logs -f n8n easier to remember.

Step 4: Access the n8n Editor and Create Your Account

Once the container is running, open a browser on the same Windows computer and visit:

http://localhost:5678

If you changed the host port, use the new port instead. For example, open http://localhost:5688 when you mapped host port 5688.

n8n startup message showing the local editor address

On your first visit, n8n prompts you to set up an owner account. Follow the instructions to enter the requested details and create a secure password.

n8n welcome screen and owner account registration form

Once the dashboard opens, you are ready to create your first automation workflow.

Test Your First n8n Workflow

Start with a workflow that does not require an external account or API key. This confirms that the editor and execution engine are working.

  1. Open the workflow editor and create a new workflow.
  2. Add the Manual Trigger node.
  3. Add an Edit Fields (Set) node.
  4. Configure the second node to create a simple text field.
  5. Select the workflow testing or execution option.
  6. Review the output to confirm that the nodes completed successfully.
  7. Save the workflow.

If both nodes run successfully, your local n8n installation can execute a basic workflow.

For an unattended workflow, you will normally need a suitable automatic trigger and a published workflow. Running a manual test alone does not make a workflow execute on a schedule.

Step 5: Activate Your Free n8n Community License Key

You can use the self-hosted n8n Community Edition without purchasing a license. It supports a broad range of automation features and is suitable for learning and building personal workflows.

n8n also offers free Community Edition registration. Registering can unlock additional features, including workflow folders, editor debugging tools, and custom execution data.

To request your free Community Edition key:

  1. Sign in to your local n8n editor.
  2. Open Settings.
  3. Find Usage and plan.
  4. Select Unlock or the available registration option.
  5. Enter your email address.
  6. Request your free license key.
  7. Check your email for the activation instructions.

n8n Community Edition free license key registration screen

You can activate the license through the email instructions or return to Settings, open Usage and plan, and choose Enter activation key.

Paste the key and select Activate.

n8n license activation screen with activation key entry

If the Usage and plan page is missing, check whether N8N_HIDE_USAGE_PAGE is set to true. That environment variable can hide the page.

Note: A free registered Community Edition is different from a paid Business or Enterprise plan. You do not need a paid license to use the standard Community Edition. Some advanced team and security features require a paid plan. Certain commercial uses of n8n also have licensing restrictions.

Step 6: Fix Common n8n Connection Problems

If your browser says the site cannot be reached, start by checking Docker Desktop. The n8n container must be running before the editor becomes available.

Open the Containers section in Docker Desktop and find your n8n container. If it is stopped, select Start.

Docker Desktop containers page showing controls to start an n8n container

If the editor still does not open, inspect the container logs. Select your container in Docker Desktop and open Logs, or run:

docker logs -f n8n

The logs can help you identify startup failures, invalid settings, or storage permission errors.

Common Problems and Solutions

ProblemWhat to Try
Container is stoppedStart it in Docker Desktop or run docker start n8n.
Port 5678 is unavailableRecreate the container with a different host port, such as 5688.
Docker engine is not runningOpen Docker Desktop and confirm that the engine has started.
WSL 2 errorCheck the WSL version, update WSL if needed, and verify virtualization.
Storage permission errorCheck folder access and permissions. Consider a Docker-managed volume for a new installation.
Browser cannot connectVerify the URL and host port. Try another browser after confirming the container is running.
Workflow cannot reach a Windows serviceTry host.docker.internal instead of localhost when accessing a service running on the Windows host.

Why Does localhost Fail Inside an n8n Workflow?

When you open http://localhost:5678 in your Windows browser, localhost refers to your Windows computer.

Inside an n8n Docker container, localhost refers to the container itself. This difference can cause connection errors when an HTTP Request node tries to reach an application running directly on Windows.

For example, if a service runs on Windows port 3000, a workflow may need to use:

http://host.docker.internal:3000

Docker Desktop provides this hostname for reaching the host computer from a container. The Windows service must also be running and accessible through the required port.

Step 7: Decide When to Move Your Automations to the Cloud

Running n8n locally is useful for learning, prototyping, and testing automation ideas. It gives you control over your workflows without immediately paying for hosted infrastructure.

However, an ordinary Windows PC is not always a reliable place for critical automations. Workflows may stop when the computer shuts down, sleeps, or loses its network connection.

Benefits of Reliable Cloud Hosting

  • Workflows can continue running when your personal computer is off.
  • Scheduled automations can operate without depending on your laptop.
  • External services can reach properly configured public webhook endpoints.
  • Managed platforms may reduce maintenance and infrastructure work.
  • Production hosting can provide better options for monitoring, backups, and recovery.

Cloud hosting is not the only way to run n8n continuously. A properly configured local server or dedicated computer can also operate around the clock. You remain responsible for its power, networking, security, and maintenance.

Use Docker Compose for Longer-Term Installations

Docker Desktop’s Run interface is convenient for a first installation. For a setup you plan to maintain, Docker Compose provides a more structured way to define containers, volumes, ports, and environment settings.

n8n’s current documentation recommends installing with Docker Compose for a more complete self-hosted setup.

Docker Compose also makes it easier to document your configuration and recreate services consistently.

Warning: Do not expose an unprotected local n8n editor directly to the public internet. Use appropriate access controls, HTTPS, backups, and a secure network configuration before accepting external traffic.

Can External Apps Reach Local n8n Webhooks?

Not directly through a localhost address. External services cannot normally send internet requests to http://localhost:5678 on your computer.

For webhooks from outside your network, you need a publicly reachable endpoint. Development tunnels can help with temporary testing, while a production setup should use a properly secured public address.

For current self-hosted configurations behind a reverse proxy, n8n documents the N8N_WEBHOOK_URL setting and relevant proxy settings. See the official webhook configuration guide.

Step 8: Manage Your n8n Instance with Docker Commands

You can manage your installation using Docker Desktop or PowerShell. These commands are helpful for checking containers and fixing startup problems.

CommandPurpose
docker stop n8nStop the n8n container.
docker start n8nStart an existing n8n container.
docker restart n8nRestart the container.
docker psShow running containers.
docker ps -aShow running and stopped containers.
docker logs -f n8nFollow the container logs.
docker volume lsList Docker-managed volumes.

Stopping a container does not normally delete its persistent data. However, removing a container without correctly configured storage can cause data loss.

Pro Tip: Keep a record of your original image, ports, volume mapping, and environment variables. You will need these settings when recreating or updating your container.

Step 9: Update Your n8n Docker Installation Safely

n8n receives updates that may contain security fixes, improvements, and new features. Before upgrading, review the relevant release notes and confirm that your workflows and integrations remain compatible.

Back Up Your n8n Data First

Before updating, create a reliable backup of the data stored in your persistent folder or Docker volume.

For a standard SQLite-based installation, the persistent data directory contains important application data, including the database and encryption settings used for stored credentials.

Before an update:

  1. Identify the storage location used by your current container.
  2. Stop the container cleanly before making a file-level backup of its data.
  3. Back up the complete persistent data directory or volume using an appropriate backup method.
  4. Store the backup securely because it can contain sensitive credentials and workflow information.
  5. Confirm that the backup can be restored before making significant changes.

Pull and Run the Updated Image

To download the latest image from the registry used in this guide, run:

docker pull docker.n8n.io/n8nio/n8n

Alternatively, use Docker Desktop’s Images section to pull an updated image.

Downloading the new image does not automatically replace an existing running container. You must stop and recreate that container using the updated image.

For a manually created container, follow these steps:

  1. Save your existing container configuration.
  2. Stop the old n8n container.
  3. Remove the old container without deleting its persistent data volume.
  4. Create a new container using the updated image.
  5. Reuse the same persistent storage and required environment variables.
  6. Start the new container and inspect the logs for errors.
  7. Open the editor and test important workflows.

For example, you can stop and remove the named container with:

docker stop n8n
docker rm n8n

Removing the container itself does not delete a separate named volume such as n8n_data. Recreate the container with the original volume mapping, port settings, and environment variables.

If you use Docker Compose, follow the update procedure for your Compose project instead.

Warning: Never delete your n8n data volume during a routine update. Commands such as docker volume rm and docker compose down -v can remove stored data. Keep a tested backup before major upgrades.

Frequently Asked Questions

Is n8n Free When Installed Locally?

Yes. You can self-host n8n Community Edition without paying for the n8n software. Free registration can unlock additional Community Edition features.

Docker Desktop licensing, paid n8n features, AI APIs, external services, and hosting may introduce separate costs. Check the licensing rules for your use case.

Can I Run n8n on Windows Without Docker?

Installation options depend on the n8n version. Docker is the recommended approach for current and future self-hosted installations.

If you want an alternative deployment method, check n8n’s latest installation documentation before setting it up. Older npm-based tutorials may no longer apply to newer releases.

Will My Workflows Disappear When I Restart Docker?

No, not if your instance uses persistent storage correctly. A Docker-managed volume or bind-mounted folder preserves the application data across normal restarts and container recreation.

However, persistent storage is not the same as a backup. You still need separate recovery copies.

Does n8n Work Without an Internet Connection?

You can access and execute some local workflows without internet access once n8n and its required components are installed.

Workflows that call online APIs, send email, or use external AI services need network access. Internet connectivity is also needed for downloading images and checking updates.

Can I Run n8n Locally 24/7?

Yes, if your computer stays powered on, Docker continues running, and the network remains available when required.

For business-critical tasks, a reliable server or managed hosting platform is usually a more practical choice than an everyday laptop.

Why Does localhost:5678 Not Open?

Check that Docker Desktop is running and the n8n container has started successfully. Confirm the host port, inspect logs, and verify that another application is not using the same port.

If you changed the host port to 5688, use http://localhost:5688 instead.

Can I Use n8n with AI Agents on My Windows PC?

Yes. A local n8n instance can run supported AI workflows and agent nodes when their required services and credentials are configured.

Some integrations need external API access, while local AI services may need extra resources and Docker networking configuration.

Sources

  1. n8n Docker installation documentation — original Docker installation reference; the current documentation identifies this older method as outdated for recommended maintained setups.
  2. n8n environment variables documentation — official configuration guidance.
  3. Docker Desktop for Windows documentation — official Windows requirements, licensing information, and setup instructions.
  4. n8n Docker Compose installation guide — recommended approach for a more structured installation.
  5. n8n Community Edition features — free and paid edition differences.
  6. n8n HTTP Request troubleshooting — container networking and connection problems.
  7. n8n webhook URL configuration — external webhook and reverse proxy guidance.

Conclusion

Running n8n locally on Windows with Docker Desktop gives you a practical environment for learning automation and building workflows. You can install the official image, open the editor at localhost, and test automations without immediately paying for hosting.

The most important setup choice is persistent storage. Configure a Docker volume or reliable folder mapping, keep your installation private, and back up important data before upgrading.

Start with a simple workflow to confirm everything works. When your automations need reliable scheduling, public webhooks, or continuous operation, consider a properly maintained Docker Compose installation or cloud hosting.


Last Updated on October 31, 2026 by Logan Carter

Written by

Lead Web Developer

Logan is a web developer with over a decade of experience building high-performance WordPress websites. He leads the Templytic team with a focus on clean code, responsive design, and user-first digital solutions. Away from the editor, he explores new UI trends and helps small businesses grow online.

4 comments

Leave a comment

Your email address will not be published. Required fields are marked *

Search the site

Popular topics