Update ocis-local-docker.md

The "Discover OCIS with Docker" lacks the critical piece of ownership of the folders. Otherwise it will not start.
This commit is contained in:
Stefan H. authored and Martin Mattel committed 2025-07-16 11:10:16 +02:00
1 parent 6d15133047
commit 10dd3068e7
1 file changed
+15 -2
+15 -2
View File
@@ -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