错误提示
siyuan_jx85-1 | Creating group siyuan (1000)
siyuan_jx85-1 | addgroup: permission denied (are you root?)
siyuan_jx85-1 | Creating group siyuan (1000)
siyuan_jx85-1 | addgroup: permission denied (are you root?)
siyuan_jx85-1 | Creating group siyuan (1000)
siyuan_jx85-1 | addgroup: permission denied (are you root?)
siyuan_jx85-1 | addgroup: permission denied (are you root?)
siyuan_jx85-1 | Creating group siyuan (1000)
siyuan_jx85-1 | Creating group siyuan (1000)
siyuan_jx85-1 | addgroup: permission denied (are you root?)
解决办法
删除user: '1000:1000'
添加 - PUID=1000 - PGID=1000
services:siyuan_jx85:image: b3log/siyuan:${VERSION}# container_name: ${CONTAINER_NAME}deploy:resources:limits:cpus: ${CPUS}memory: ${MEMORY_LIMIT}restart: unless-stoppedports:- ${HOST_IP}:${WEB_HTTP_PORT}:6806command: ['--workspace=/siyuan/workspace/', '--accessAuthCode=${ACCESS_AUTH_CODE}']environment:- TZ=${TIME_ZONE}- PUID=1000- PGID=1000volumes:- ${APP_PATH}/data:/siyuan/workspacelabels:createdBy: "bt_apps"networks:- baota_netnetworks:baota_net:external: true