From 536a9755341787b7ed73b9e6ac9964d8ff5e661d Mon Sep 17 00:00:00 2001 From: Justin Ellingwood Date: Mon, 6 Jan 2025 11:06:57 +0000 Subject: [PATCH] docs: Add volumes to the Docker example from the README (no-changelog) (#12464) --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cc7d596f61..8d01e943d3 100644 --- a/README.md +++ b/README.md @@ -18,11 +18,16 @@ n8n is a workflow automation platform that gives technical teams the flexibility Try n8n instantly with [npx](https://docs.n8n.io/hosting/installation/npm/) (requires [Node.js](https://nodejs.org/en/)): -`npx n8n` +``` +npx n8n +``` Or deploy with [Docker](https://docs.n8n.io/hosting/installation/docker/): -`docker run -it --rm --name n8n -p 5678:5678 docker.n8n.io/n8nio/n8n` +``` +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 +``` Access the editor at http://localhost:5678