From 10dd3068e7eba59f009bf1e044e714e127039bf2 Mon Sep 17 00:00:00 2001 From: "Stefan H." Date: Tue, 8 Jul 2025 15:10:14 +0200 Subject: [PATCH] Update ocis-local-docker.md The "Discover OCIS with Docker" lacks the critical piece of ownership of the folders. Otherwise it will not start. --- docs/ocis/guides/ocis-local-docker.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/docs/ocis/guides/ocis-local-docker.md b/docs/ocis/guides/ocis-local-docker.md index aa889fe4a84..112c9cdab7b 100644 --- a/docs/ocis/guides/ocis-local-docker.md +++ b/docs/ocis/guides/ocis-local-docker.md @@ -46,9 +46,22 @@ services: OCIS_LOG_LEVEL: info ``` -### Initialize +### Prepare Paths +Create directories if not exists: -Run ocis init to create a config +```bash +mkdir -p $(pwd)/ocis-config \ +mkdir -p $(pwd)/ocis-data +``` + +Set the user for the directories to be the same as the user inside the container: + +```bash +sudo chown -Rfv 1000:1000 $(pwd)/ocis-config/ \ +sudo chown -Rfv 1000:1000 $(pwd)/ocis-data +``` + +### Initialize ```bash docker run --rm -it -v $(pwd):/etc/ocis/ owncloud/ocis:latest init