How to Install n8n on Windows 11 Using Docker Desktop (Local Setup Guide)?
Running n8n locally on Windows 11 is one of the fastest ways to start building automation workflows—without worrying about cloud setup or server costs.
This guide is specifically optimized for:
- ✅ Windows 11
- ✅ Docker Desktop
- ✅ Local development environment
What is n8n?
n8n is an open-source workflow automation tool that lets you connect APIs, databases, and services with minimal code.
Why Use Docker Desktop on Windows?
On Windows, Docker Desktop simplifies everything:
- No manual dependency setup
- Built-in WSL 2 integration
- Easy container management UI
- Works seamlessly with localhost
Prerequisites (Windows 11)
Before starting, install:
- 🐳 Docker Desktop
- Enable WSL 2 (Windows Subsystem for Linux)
🔧 Enable WSL 2 (if not already)
Open PowerShell (Admin):
wsl --install
Restart your system after installation.
Step 1: Start Docker Desktop
- Open Docker Desktop
- Wait until status shows “Running”
- Ensure WSL 2 backend is enabled (Settings → General)
Step 2: Create Persistent Volume
Open PowerShell or Command Prompt:
docker volume create n8n_data
👉 This prevents data loss when restarting containers.
Step 3: Run n8n Container
Run this command:
docker run -d ^
--name n8n ^
-p 5678:5678 ^
-e GENERIC_TIMEZONE="Asia/Kolkata" ^
-e TZ="Asia/Kolkata" ^
-e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true ^
-v n8n_data:/home/node/.n8n ^
docker.n8n.io/n8nio/n8n
📝 Notes (Windows-specific)
- Use
^for line continuation in Command Prompt - In PowerShell, you can use backtick
`instead -druns container in background
Step 4: Open n8n in Browser
Go to:
http://localhost:5678
You should see the n8n editor UI 🎉
Where is My Data Stored?
Even on Windows, Docker stores volume data inside WSL.
Your workflows are safe inside:
n8n_data volume (Docker managed)
👉 You don’t need to manually access it unless debugging.
Stop / Start n8n
docker stop n8n
docker start n8n
Update n8n (Windows)
docker pull docker.n8n.io/n8nio/n8n
docker stop n8n
docker rm n8n
Then re-run the same docker run command.
Optional: Use Docker Compose (Recommended)
Create docker-compose.yml:
version: "3"
services:
n8n:
image: docker.n8n.io/n8nio/n8n
ports:
- "5678:5678"
environment:
- GENERIC_TIMEZONE=Asia/Kolkata
- TZ=Asia/Kolkata
volumes:
- n8n_data:/home/node/.n8n
volumes:
n8n_data:
Run:
docker compose up -d
Common Issues on Windows 11
Port Already in Use
If 5678 is busy:
-p 5679:5678
Then open:
http://localhost:5679
Docker Not Starting
- Ensure Virtualization is enabled in BIOS
- Restart Docker Desktop
- Run:
wsl --status
Permission Issues
Add:
-e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
Pro Tips for Local Development
- Use local SQLite (default) for dev
- Switch to PostgreSQL only for production
- Backup workflows manually before upgrades
- Avoid frequent container recreation without volume
Final Thoughts
Running n8n locally on Windows 11 with Docker Desktop is:
- ⚡ Fast to set up
- 💻 Perfect for development
- 🔒 Safe for experimentation
Once you're comfortable, you can move to:
- VPS deployment
- Reverse proxy + domain
- Production-grade database


