Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

工作目录设置为/siyuan_spac,会导致docker启动失败 #13910

Open
3 tasks done
x93008 opened this issue Jan 21, 2025 · 1 comment
Open
3 tasks done

工作目录设置为/siyuan_spac,会导致docker启动失败 #13910

x93008 opened this issue Jan 21, 2025 · 1 comment

Comments

@x93008
Copy link

x93008 commented Jan 21, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

services: siyuan-server: container_name: siyuan command: ['--workspace=/siyuan_spac', '--accessAuthCode=9625'] image: b3log/siyuan:v3.1.20 ports: - 6806:6806 volumes: - /opt/docker_yml/siyuan_data:/siyuan_space environment: - PUID=1000 - PGID=1000 restart: always

上面的compose执行docker compose up -d --build 启动之后,一直提示在restarting,使用dokcer log 查看里面报错如下:
Using existing group: siyuan (1000) Using existing user siyuan (PUID: 1000, PGID: 1000) Adjusting ownership of /opt/siyuan, /home/siyuan/, and /siyuan_spac chown: /siyuan_spac: No such file or directory
如果我将/siyuan_spac替换为/siyuan/workspace, 然后就正常了。

docker版本:
Docker version 27.3.1
Docker Compose version 2.31.0
系统版本:
manjaro 内核 6.1.119 x86_64

Expected result

希望workspace可以自定义,如果只能固定,那么就不要增加这个选项。

Screenshot or screen recording presentation

No response

Version environment

- Version: 3.1.20
- Operating System: Linux (manjaro)
- Browser (if used): (NULL)

Log file

docker未成功启动,没有日志

More information

No response

@x93008
Copy link
Author

x93008 commented Jan 21, 2025

siyuan-server:
container_name: siyuan
command: ['--workspace=/siyuan_spac', '--accessAuthCode=9625']
image: b3log/siyuan:v3.1.20
ports:
- 6806:6806
volumes:
- /opt/docker_yml/siyuan_data:/siyuan_space
environment:
- PUID=1000
- PGID=1000
restart: always

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant