docling-project / docling-project/docling
Docling Permission Denied on Model Download in Docker with Non-Root User
Open
question
- Dominant language
- Python
- Stars
- 66.4k
- Forks
- 4.8k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 84
Description
I'm running Docling in a Docker container with a non-root user. When DocumentConverter tries to initialize, it fails with a permission error while attempting to download OCR models:
[Errno 13] Permission denied: '/usr/local/lib/python3.12/site-packages/rapidocr/models/ch_PP-OCRv4_det_infer.pth'
The models still attempt to download at runtime when the non-root user calls DocumentConverter(), causing permission errors.
Contributor guide
Assessment
This issue has not been assessed yet.