32 days until I become an AI automation expert.
Day 3: How to run n8n locally on your Windows PC without depending on the 14-day Cloud trial.
I wish someone had given me this guide before I started setting up Docker.
I spent hours watching YouTube tutorials, restarting my PC, troubleshooting errors and going back and forth with ChatGPT.
But I finally got n8n running locally on my PC.
So, if you’re planning to get into AI automation and want to run n8n on your computer, here’s what you need to do.
STEP 1: Set up PowerShell and WSL
First, open PowerShell as an administrator.
If you don’t have PowerShell 7, you can install it from the Microsoft Store. Windows also comes with the older Windows PowerShell.
In the administrator window, enter:
wsl --install
WSL (Windows Subsystem for Linux) allows you to run a Linux environment on Windows. Docker Desktop can use WSL 2 as its backend.
Depending on your PC, you may need to restart your computer to complete the installation.
STEP 2: Download Docker Desktop
Go to the official Docker website and download Docker Desktop for Windows.
Install it and make sure the WSL 2 backend is enabled.
If WSL is already set up correctly, Docker Desktop should be able to use it.
STEP 3: Download the n8n image
Open Docker Desktop and launch a terminal where Docker commands are available.
Enter:
docker pull n8nio/n8n
This downloads the n8n image to your computer.
How do you know it worked?
Look for a successful download message, such as:
Status: Downloaded newer image for n8nio/n8n
STEP 4: Create persistent storage
This step is important.
In Docker Desktop, go to Volumes and create a volume.
Give it a name you can easily remember.
I named mine:
n8n_data
This volume helps preserve your n8n data when the container is stopped or recreated.
STEP 5: Run your n8n image
Go to Images in Docker Desktop.
Find the n8nio/n8n image and click the Run button.
Docker will ask you to configure the container.
For the settings:
Host port: 5678
Volume name: (use yours)
Container path: /home/node/.n8n
Make sure the volume is mounted to that container path.
Then run the container.
STEP 6: Access your local n8n
Once Docker successfully runs your n8n container, you’ll see the local address:
http://localhost: (you’d get yours)
Click the link or copy it into your browser.
This will take you to the n8n setup page.
STEP 7: Create your owner account and get your free license key
On the setup page, you’ll be asked to create your n8n owner account.
Fill in your details and follow the setup instructions.
Once you’re in, look out for the option to get your free license key.
Click it, submit your email address, and n8n will send the license key to your inbox.
Follow the instructions to activate it.
And that’s it! Your self-hosted n8n Community Edition is ready to use locally, without relying on the 14-day n8n Cloud trial.
You can now start creating and testing your automation workflows on your PC.
And that’s how I got past relying on the 14-day n8n Cloud trial.
I know how frustrating it can be when you’re excited to learn something new and spend hours trying to get the tools working.
That’s why I’m sharing the process.
Hopefully, this saves someone a few hours of troubleshooting.
Save this guide for when you’re setting up your own n8n environment.
See you on day 4😍