From 1b75cd4482056bbac17915d359d858ae2282b890 Mon Sep 17 00:00:00 2001 From: zDEFz Date: Thu, 14 Jan 2021 18:31:49 +0100 Subject: [PATCH] Updated Linux instructions for beginners with docker like myself. --- Docker-server-installation.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Docker-server-installation.md b/Docker-server-installation.md index 93971c8..97bca7c 100644 --- a/Docker-server-installation.md +++ b/Docker-server-installation.md @@ -20,4 +20,7 @@ Replace [VERSION] for actual latest version or use "series" tag - e.g. `0.39-lat sudo docker run -t -i -p 127.0.0.1:8080:8080 -v ~/trilium-data:/root/trilium-data zadam/trilium:[VERSION] ~~~~ -Command above is mounting volume to the host system so that trilium's data (most importantly [[document]]) is persisted and not cleared after container stops. \ No newline at end of file +Command above is mounting volume to the host system so that trilium's data (most importantly [[document]]) is persisted and not cleared after container stops. +If you want to run your instance in a non-default way, please use the volume switch as follows: `-v ~/YourOwnDirectory:/root/trilium-data zadam/trilium:[VERSION]`. +It is important to be aware of how Docker works for volumes, with the first path being your own and the second the one to virtually bind to. +https://docs.docker.com/storage/volumes/