- 挂载的目录在容器里是 root 权限,而容器里都是用户名 siyuan 的。
- 解决了上述问题,结果还是无法访问。
version: '2.0'
services:
SiYuan:
image: b3log/siyuan:latest
container_name: siyuan
ports:
- "6806:6806"
volumes: - ./workspace:/home/siyuan/test:z # Requested, specifies the path to Seafile data persistent store.
command: - --workspace=/home/siyuan/test
environment: - LANG=zh_CN.UTF-8
- TIME_ZONE=Asia/Shanghai # Optional, default is UTC. Should be uncomment and set to your local time zone.
networks: - siyuan-net
networks:
siyuan-net:
启动结果:
podman create --name=siyuan --label io.podman.compose.config-hash=123 --label io.podman.compose.project=siyuan --label io.podman.compose.version=0.0.1 --label com.docker.compose.project=siyuan --label com.docker.compose.project.working_dir=/home/coder/opt/SiYuan --label com.docker.compose.project.config_files=docker-compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=SiYuan -e LANG=zh_CN.UTF-8 -e TIME_ZONE=Asia/Shanghai -v /home/coder/opt/SiYuan/workspace:/home/siyuan/test:z --net siyuan_siyuan-net --network-alias SiYuan -p 6806:6806 b3log/siyuan:latest --workspace=/home/siyuan/test
02389549f3acfc22ba0a1755c60d9e266f9e9b39a98e6a75102b662282fb37bb
exit code: 0
podman start -a siyuan
E 2022/10/11 16:39:47 working.go:493: unzip pandoc failed: open /opt/siyuan/pandoc.zip: no such file or directory
I 2022/10/11 16:39:47 working.go:111:
/ /\ ___ ___ //\ / /\ //
/ /:/_ / /\ //| \ :\ / /::\ \ :
/ /:/ /\ / /:/ | |:| \ :\ / /:/:\ \ :
/ /:/ /::\ //::\ | |:| ___ \ :\ / /://::\ ______:/:/ \ :/\ //::::\ \ :\ / /:/ \ :/:// \ :~
/__/:/ /:/:\ _/:__ ||:| //\ __:\ //:/ /:/:\ /__/::::::::
\ :/:/~/
\ ::/ /:/ _::/ ~:\ \ :\ /:/ \ ::/ \ :\ ~~~
_/ /:/ //:/ \ :\ \ :/:/ \ :\ \ :
//:/ _/ _/ \ ::/ \ :\ \ :
_/ _/ _/ _/
I 2022/10/11 16:39:47 runtime.go:47: kernel is booting:
- ver [2.3.3]
- arch [amd64]
- runtime mode [prod]
- working directory [/opt/siyuan]
- read only [false]
- container [std]
- database [ver=20220501]
- workspace directory [/home/siyuan/test, data 20 kB]
I 2022/10/11 16:39:47 serve.go:79: kernel is booting [http://127.0.0.1:6806]
I 2022/10/11 16:39:47 conf.go:578: database size [74 kB], tree/block count [0/0]
I 2022/10/11 16:39:47 working.go:151: kernel booted
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于