Setup n8n with docker

Prerequisites

Before proceeding, install Docker Desktoparrow-up-right.

Linux Users

Docker Desktop is available for Mac and Windows. Linux users must install Docker Enginearrow-up-right and Docker Composearrow-up-right individually for your distribution.

Latest and Next versions

n8n releases a new minor version most weeks. The latest version is for production use. next is the most recent release. You should treat next as a beta: it may be unstable. To report issues, use the forumarrow-up-right.

Current latest: 1.86.1 Current next: 1.88.0

Starting n8n

From your terminal, run:

docker volume create n8n_data

docker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n

This command creates a volume to store persistent data, downloads the required n8n image, and starts your container, exposed on port 5678. To save your work between container restarts, it also mounts a docker volume, n8n_data, to persist your data locally.

Once running, you can access n8n by opening: http://localhost:5678arrow-up-right

refer link https://docs.n8n.io/hosting/installation/docker/#prerequisitesarrow-up-right

Last updated