使用Docker安装Stirling-PDF(PDF工具)

1、官方Web端

复制代码
详见:https://stirlingpdf.io/?lang=zh_CN

2、安装Docker

合集:Docker安装与使用

3、安装Stirling-PDF

复制代码
详见:
https://docs.stirlingpdf.com/Installation/Docker%20Install
https://hub.docker.com/r/stirlingtools/stirling-pdf

创建目录:

复制代码
mkdir stirlingpdf

切换目录:

复制代码
cd stirlingpdf

3.1、方式1

拉取镜像:

复制代码
"示例"
# docker pull docker.stirlingpdf.com/stirlingtools/stirling-pdf:latest

"xxx:latest-fat镜像"
# docker pull stirlingtools/stirling-pdf:latest-fat

"xxx:latest镜像"(当前使用该镜像)
docker pull stirlingtools/stirling-pdf:latest

"xxx:latest-ultra-lite镜像"
# docker pull stirlingtools/stirling-pdf:latest-ultra-lite

运行容器:

复制代码
docker run -d \
  --name stirling-pdf \
  -p 8080:8080 \
  -v "./data/trainingData:/usr/share/tessdata" \
  -v "./data/extraConfigs:/configs" \
  -v "./data/customFiles:/customFiles/" \
  -v "./data/logs:/logs/" \
  -v "./data/pipeline:/pipeline/" \
  stirlingtools/stirling-pdf:latest

查看容器列表:

复制代码
docker ps

停止容器:

复制代码
docker stop stirling-pdf

删除容器:

复制代码
docker rm stirling-pdf

删除镜像:

复制代码
docker rmi stirlingtools/stirling-pdf:latest

删除目录:

复制代码
rm -rf ./data

3.2、方式2

创建docker-compose.yml文件:

复制代码
#version: '3.3'
services:
  stirling-pdf:
    #image: docker.stirlingpdf.com/stirlingtools/stirling-pdf:latest
    image: stirlingtools/stirling-pdf:latest
    container_name: stirling-pdf
    ports:
      - '8080:8080'
    volumes:
      - ./data/trainingData:/usr/share/tessdata # Required for extra OCR languages
      - ./data/extraConfigs:/configs
      - ./data/customFiles:/customFiles/
      - ./data/logs:/logs/
      - ./data/pipeline:/pipeline/
    #environment:
    #  - DISABLE_ADDITIONAL_FEATURES=false
    #  - LANGS=en_GB

创建并启动容器:

复制代码
docker-compose up -d

查看容器列表:

复制代码
docker ps

停止并销毁容器:

复制代码
docker-compose down

删除镜像:

复制代码
docker rmi stirlingtools/stirling-pdf:latest

删除目录:

复制代码
rm -rf ./data

4、浏览器访问

复制代码
假设当前ip为192.168.186.128
浏览器访问:http://192.168.186.128:8080

5、详见

复制代码
https://stirlingpdf.com
https://stirlingpdf.io
https://docs.stirlingpdf.com
https://github.com/Stirling-Tools/Stirling-PDF
https://hub.docker.com/r/stirlingtools/stirling-pdf
https://mp.weixin.qq.com/s/8R0ErCH3imzVPmG-5nZtyg
相关推荐
雪可问春风1 天前
docker环境部署
运维·docker·容器
其实秋天的枫1 天前
【2026年最新】驾考科目一考试题库2309道电子版pdf
经验分享·pdf
双份浓缩馥芮白1 天前
【Docker】Linux 迁移 docker 目录(软链接)
linux·docker
kobe_OKOK_1 天前
S7 adapter Docker run
运维·docker·容器
一个欠登儿程序员1 天前
在国产服务器上通过 Docker 部署 Windows 虚拟机
服务器·windows·docker
墨染天姬1 天前
【AI】如何基于cursor创建MCP索引pdf
人工智能·pdf
qq_429499571 天前
分享免费的PDF 翻译 原格式
pdf
Hadoop_Liang1 天前
构建Spring Boot项目Docker镜像
spring boot·后端·docker
来自外太空的鱼-张小张1 天前
jeecg预览pdf、jeecg无法预览pdf、jeecg自带预览pdf
pdf·状态模式
Learn-Python1 天前
修改docker容器内文件后让其生效
运维·docker·容器