From 929cc98601a1c33d90aab52817ef7f797e1dad5e Mon Sep 17 00:00:00 2001 From: Jody Date: Tue, 16 Mar 2021 13:40:33 -0400 Subject: [PATCH] Update data directory target in container to correspond with v0.46.5 change to run as node user (no longer root user). --- Docker-server-installation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Docker-server-installation.md b/Docker-server-installation.md index 1cdb2c8..218eae3 100644 --- a/Docker-server-installation.md +++ b/Docker-server-installation.md @@ -25,7 +25,7 @@ These commands mount the volume to the host system so that trilium's data (most ### Local only This will run the container so that it only available on the localhost. Use this to test the installation from a web browser on the same machine you run this command on, or if you are using a proxy with nginx/apache. ~~~~ -sudo docker run -t -i -p 127.0.0.1:8080:8080 -v ~/trilium-data:/root/trilium-data zadam/trilium:[VERSION] +sudo docker run -t -i -p 127.0.0.1:8080:8080 -v ~/trilium-data:/home/node/trilium-data zadam/trilium:[VERSION] ~~~~ 1. Test to see that the docker image is running with `docker ps` 2. Access the trilium by opening a browser and go to `127.0.0.1:8080` @@ -33,7 +33,7 @@ sudo docker run -t -i -p 127.0.0.1:8080:8080 -v ~/trilium-data:/root/trilium-dat ### Available anywhere This will run the container as a background process and will be available from any IP address ~~~~ -docker run -d -p 0.0.0.0:8080:8080 -v ~/trilium-data:/root/trilium-data zadam/trilium +docker run -d -p 0.0.0.0:8080:8080 -v ~/trilium-data:/home/node/trilium-data zadam/trilium ~~~~ To stop this background docker process us `docker ps` to get the "CONTAINER ID" and then use `docker stop `