For anyone interested in n8n, there is a relatively easy way to try it as much as you want. You can run the community edition of n8n locally for free. This is a good option for local automation, learning about n8n, testing, or building a demo. Here is a step-by-step guide to set it up on Windows 111.

Install or update the Windows Subsystem for Linux (WSL)

Right click on the Start menu, then click on Terminal (Admin).

Docker Desktop installation step 1

Type wsl --install, then press Enter. Reboot after the installation is complete.

Docker Desktop installation step 2

If you get the message Windows Subsystem for Linux is already installed., then type wsl --update and press Enter.

Docker Desktop installation step 3

Docker Desktop installation step 4

Install Docker Desktop

Download Docker Desktop and open the installer file2.

Docker Desktop website

Click OK. Windows containers aren’t required.

Docker Desktop installation step 1

Wait for the installation to complete.

Docker Desktop installation step 2

You might be prompted to log out at the end of the installation.

Docker Desktop installation step 3

Start Docker Desktop for the first time

Start Docker Desktop, accept the Terms of Service.

Docker Desktop installation step 4

You can skip creating an account.

Docker Desktop installation step 5

Wait for the Docker Engine to start.

Docker Desktop installation step 6

When ready, Docker Desktop should look like this.

Docker Desktop installation step 7

Set up an n8n Docker image

Click on Volumes > Create a volume.

Docker container step 1

Name the volume n8n_data, then create it.

Docker container step 2

The volume should show up in the list. This is where the permanent data of your n8n instance will be stored.

Docker container step 3

Click on Images > Search images to run.

Docker container step 4

Search n8n. Click on Pull for the n8nio/n8n image.

Docker container step 5

Wait for the image to be downloaded, then press Esc to close the search window. You should now see the n8n image.

Docker container step 6

Create an n8n container

Click on Run.

Docker container step 7

Open the optional settings and configure the container with the following parameters. Replace <YOUR_TIMEZONE> with your time zone identifier as documented here, e.g. Europe/Berlin for Germany.

  • Container name: n8n
  • Ports
    • Host port: 5678
  • Volumes
    • Host path: n8n_data
    • Container path: /home/node/.n8n
  • Variables
    • Variable: GENERIC_TIMEZONE, value: <YOUR_TIMEZONE>
    • Variable: TZ, value: <YOUR_TIMEZONE>
    • Variable: N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS, value: true
    • Variable: N8N_RUNNERS_ENABLED, value: true

Docker container step 8

Docker container step 9

If prompted by Windows Security, click Cancel. Access isn’t required for local use.

Windows defender prompt

If successful, Docker Desktop should look like this.

Docker container step 10

Configure n8n

Your local n8n instance is available at http://localhost:5678. You will be prompted to set up an owner account the first time you open the page.

Note: If you already have a n8n account, it is unrelated to this one. You can reuse the same email you used for other n8n instances.

n8n - Set up owner account

Optional: You can register the instance to get some additional features. You can skip this step and register the instance afterwards.

n8n - Get paid features

Congratulations! You are now running n8n community edition on your PC.

n8n - Get paid features

Managing the n8n container

Even if you close n8n in your browser, the n8n container keeps running in the background. You can keep it running or stop it to save resources.

Running n8n container

If you want to restart your n8n instance (e.g. after rebooting Windows), go to Containers and click Start. You can then access n8n from http://localhost:5678.

Start n8n container

Footnotes

  1. n8n can be installed via npm or Docker. Here I show the Docker installation, which is recommended. 

  2. You can install Docker directly over the WSL, but Docker Desktop simplifies the installation by executing automatically some of the configuration steps. 

Comments

Discuss on Mastodon 🐘