Skip to content

Commit

Permalink
fix(docs): mark config mount as read-only
Browse files Browse the repository at this point in the history
This previous config results in the following error:

```
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/home/x/blocky/config.yml" to rootfs at "/app/config.yml": mount /home/x/blocky/config.yml:/app/config.yml (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
```
  • Loading branch information
zygm0nt authored Oct 11, 2024
1 parent 832d6c4 commit 8f08b7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ services:
# Optional to synchronize the log timestamp with host
- /etc/localtime:/etc/localtime:ro
# config file
- ./config.yml:/app/config.yml
- ./config.yml:/app/config.yml:ro
```

and start docker container with
Expand Down Expand Up @@ -116,7 +116,7 @@ services:
- TZ=Europe/Berlin
volumes:
# config file
- ./config.yml:/app/config.yml
- ./config.yml:/app/config.yml:ro
# write query logs in this volume
- queryLogs:/logs
# put your custom allow/denylists in these directories
Expand Down

0 comments on commit 8f08b7b

Please sign in to comment.