[GH-ISSUE #116] Docker and .oikb.yaml #72

Open
opened 2026-10-18 21:14:05 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @LizardWizardGB on GitHub (Sep 3, 2026).
Original GitHub issue: https://github.com/open-webui/oikb/issues/116

Hi there,

There seems to be some kind of issue with Docker.

docker-compose.yml
oikb:
image: ghcr.io/open-webui/oikb:latest
container_name: oikb
environment:
- OPEN_WEBUI_URL=http://open-webui:8080
- OPEN_WEBUI_API_KEY=${OPEN_WEBUI_API_KEY}
- OIKB_API_KEY=${OIKB_API_KEY}
- LOG_FORMAT=json
volumes:
- ./.oikb.yaml:/app/.oikb.yaml:ro
command: daemon
ports:
- "8080:8080"
depends_on:
- open-webui
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health/ready"]
interval: 30s
timeout: 5s

When I start the container it creates the folder ".oikb.yaml" on the host and in the logs of the oikb container it says:
oikb | IsADirectoryError: [Errno 21] Is a directory: '.oikb.yaml'
and the container will just keep restarting.

Why is Docker creating a folder instead of a yaml file?

Originally created by @LizardWizardGB on GitHub (Sep 3, 2026). Original GitHub issue: https://github.com/open-webui/oikb/issues/116 Hi there, There seems to be some kind of issue with Docker. **docker-compose.yml** oikb: image: ghcr.io/open-webui/oikb:latest container_name: oikb environment: - OPEN_WEBUI_URL=http://open-webui:8080 - OPEN_WEBUI_API_KEY=${OPEN_WEBUI_API_KEY} - OIKB_API_KEY=${OIKB_API_KEY} - LOG_FORMAT=json volumes: - ./.oikb.yaml:/app/.oikb.yaml:ro command: daemon ports: - "8080:8080" depends_on: - open-webui restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/health/ready"] interval: 30s timeout: 5s When I start the container it creates the folder ".oikb.yaml" on the host and in the logs of the oikb container it says: _oikb | IsADirectoryError: [Errno 21] Is a directory: '.oikb.yaml'_ and the container will just keep restarting. Why is Docker creating a folder instead of a yaml file?
Author
Owner

@LizardWizardGB commented on GitHub (Sep 3, 2026):

If I create the .oikb.yaml file myself, on the host, I get the following error in Docker:
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/llama/.oikb.yaml" to rootfs at "/app/.oikb.yaml": mount src=/home/llama/.oikb.yaml, dst=/app/.oikb.yaml, dstFd=/proc/thread-self/fd/14, flags=MS_BIND|MS_REC: not a directory: 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

<!-- gh-comment-id:5521799945 --> @LizardWizardGB commented on GitHub (Sep 3, 2026): If I create the .oikb.yaml file myself, on the host, I get the following error in Docker: _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/llama/.oikb.yaml" to rootfs at "/app/.oikb.yaml": mount src=/home/llama/.oikb.yaml, dst=/app/.oikb.yaml, dstFd=/proc/thread-self/fd/14, flags=MS_BIND|MS_REC: not a directory: 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_
Author
Owner

@LizardWizardGB commented on GitHub (Sep 3, 2026):

In another issue, someone said to change ./.oikb.yaml:/app/.oikb.yaml:ro to ./.oikb.yaml:/data/.oikb.yaml:ro.
When I do this and have created /home/llama/.oikb.yaml myself, it says:
oikb | No sync entries found. Create a .oikb.yaml file.

If I delete /home/llama/.oikb.yaml, then the container will once again create a folder instead, named .oikb.yaml and say:
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/llama/.oikb.yaml" to rootfs at "/data/.oikb.yaml": mount src=/home/llama/.oikb.yaml, dst=/data/.oikb.yaml, dstFd=/proc/thread-self/fd/14, flags=MS_BIND|MS_REC: not a directory: 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

<!-- gh-comment-id:5521865984 --> @LizardWizardGB commented on GitHub (Sep 3, 2026): In another issue, someone said to change ./.oikb.yaml:/**app**/.oikb.yaml:ro to ./.oikb.yaml:/**data**/.oikb.yaml:ro. When I do this and have created /home/llama/.oikb.yaml myself, it says: _oikb | No sync entries found. Create a .oikb.yaml file._ If I delete /home/llama/.oikb.yaml, then the container will once again create a folder instead, named .oikb.yaml and say: _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/llama/.oikb.yaml" to rootfs at "/data/.oikb.yaml": mount src=/home/llama/.oikb.yaml, dst=/data/.oikb.yaml, dstFd=/proc/thread-self/fd/14, flags=MS_BIND|MS_REC: not a directory: 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_
Author
Owner

@lucas-profoundvision commented on GitHub (Sep 17, 2026):

I had this problem and in a previous version it worked with data, but now I had to put it under app

volumes:
  - ./oikb.yaml:/app/.oikb.yaml:ro

This works for me now.

<!-- gh-comment-id:5714881462 --> @lucas-profoundvision commented on GitHub (Sep 17, 2026): I had this problem and in a previous version it worked with data, but now I had to put it under app volumes: - ./oikb.yaml:/app/.oikb.yaml:ro This works for me now.
Author
Owner

@LizardNerd commented on GitHub (Sep 29, 2026):

Where is your docker-compose.yaml file located?

<!-- gh-comment-id:5893186593 --> @LizardNerd commented on GitHub (Sep 29, 2026): Where is your docker-compose.yaml file located?
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/oikb#72
No description provided.