具体的官方日志详情:发布 v4.1.1 · OpenListTeam/OpenList — Release v4.1.1 · OpenListTeam/OpenList
-
在
v4.1.0
以后的版本中(不包含v4.1.0
),OpenList 镜像已经移除了PUID
、PGID
,并借鉴于 MariaDB 的构建方式,使用useradd
增加了用户openlist
(UID 1001)和组openlist
(GID 1001),并使用该用户运行openlist server
。这意味着,需要手动处理映射的目录的权限问题,确保容器内的openlist(1001)
用户有权限访问映射的目录。也可以通过--user UID:GID
的方式来运行容器指定容器内运行 OpenList 的用户和组,让容器内有权限访问映射的目录。 -
Compose文件需要新增
user: '0:0' # Please replace
0:0with the actual user ID and group ID you want to use to run OpenList.
,移除- PUID=0
和- PGID=0
。
以下是 OpenList官方给出的v4.1.1及以后版本的docker-compose文件内容
# docker-compose.yml
services:
openlist:
image: 'openlistteam/openlist:latest'
container_name: openlist
user: '0:0' # Please replace `0:0` with the actual user ID and group ID you want to use to run OpenList.
volumes:
- './data:/opt/openlist/data'
ports:
- '5244:5244'
environment:
- UMASK=022
restart: unless-stopped
1Panel官方需要对 OpenList应用安装和升级过程中的选项进行适配。否则安装或升级到v4.1.1之后将无法正常启动应用。