Starting n8n
From your terminal, run the following commands, replacing the <YOUR_TIMEZONE>
placeholders with your timezone:
docker volume create n8n_data docker run -it --rm \ --name n8n \ -p 5678:5678 \ -e GENERIC_TIMEZONE="<YOUR_TIMEZONE>" \ -e TZ="<YOUR_TIMEZONE>" \ -e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true \ -e N8N_RUNNERS_ENABLED=true \ -v n8n_data:/home/node/.n8n \ docker.n8n.io/n8nio/n8n |
Updating n8n
You can also use the command line to pull the latest, or a specific version:
# Pull latest (stable) version docker pull docker.n8n.io/n8nio/n8n # Pull specific version docker pull docker.n8n.io/n8nio/n8n:1.81.0 # Pull next (unstable) version docker pull docker.n8n.io/n8nio/n8n:next |
After pulling the updated image, stop your n8n container and start it again. You can also use the command line. Replace <container_id>
in the commands below with the container ID you find in the first command:
# Find your container ID docker ps -a # Stop the container with the `<container_id>` docker stop <container_id> # Remove the container with the `<container_id>` docker rm <container_id> # Start the container docker run --name=<container_name> [options] -d docker.n8n.io/n8nio/n8n |