You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Docker镜像及Java客户端挂载卷运行ocrmypdf时出错求助

OCRmyPDF Docker挂载卷场景下的参数错误问题

运行OCRmyPDF的Docker容器时,仅返回以下错误:

ocrmypdf: error: unrecognized arguments: 64ee37a6fc66cf591ce4a35f-1.png_OCR.pdf

以下是docker inspect container的输出片段:

"Args": [
            "ocrmypdf",
            "--rotate-pages",
            "/64ee36779438c74174f123ea/pdf/64ee36779438c74174f123e9-1.png",
            "/64ee36779438c74174f123ea/pdf/64ee36779438c74174f123e9-1.png_OCR.pdf"
        ],
        ...
        "Binds": [
            "pdf-tools-data-volume:/64ee36779438c74174f123ea/pdf:rw"
        ],
        ...
        "Mounts": [
        {
            "Type": "volume",
            "Name": "pdf-tools-data-volume",
            "Source": "/var/lib/docker/volumes/pdf-tools-data-volume/_data",
            "Destination": "/64ee36779438c74174f123ea/pdf",
            "Driver": "local",
            "Mode": "rw",
            "RW": true,
            "Propagation": ""
        }],
        ...
        "Cmd": [
            "ocrmypdf",
            "--rotate-pages",
            "/64ee36779438c74174f123ea/pdf/64ee36779438c74174f123e9-1.png",
            "/64ee36779438c74174f123ea/pdf/64ee36779438c74174f123e9-1.png_OCR.pdf"
        ]

有没有人尝试过在Docker挂载卷的场景下使用OCRmyPDF?


内容的提问来源于stack exchange,提问作者Luis Lavieri

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.12 04:16:14