docling-project / docling-project/docling

Docling Permission Denied on Model Download in Docker with Non-Root User

Open
#2,812 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.