From 9649c67cc33cd077108309fc0b1dfd13acaebaed Mon Sep 17 00:00:00 2001 From: Harshil Agrawal Date: Thu, 25 Nov 2021 13:37:30 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20Add=20steps=20to=20update=20n8n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/getting-started/installation/updating.md | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/getting-started/installation/updating.md b/docs/getting-started/installation/updating.md index 47ffa5076..662311c12 100644 --- a/docs/getting-started/installation/updating.md +++ b/docs/getting-started/installation/updating.md @@ -46,3 +46,36 @@ docker pull n8nio/n8n // Pull specific version docker pull n8nio/n8n:0.126.1 ``` + +Stop the container and start it again. You can also use the command line: + +```sh +// Get the container ID +docker ps -a + +// Stop the container with ID container_id +docker stop [container_id] + +// Remove the container with ID container_id +docker rm [container_id] + +// Start the container +docker run --name=[container_name] [options] -d n8nio/n8n +``` + +## Docker Compose + +If you've running n8n using a docker-compose file, follow the below mentioned steps to update n8n. + +```sh +// Pull latest version +docker-compose pull + +// Stop and remove older version +docker-compose down + +// Start the container +docker-compose up -d +``` + +