思源笔记 docker 部署问题

根据思源笔记 v5.0.5.45 文档,我在 centos 上使用以下命令进行部署时,命令行无任何反应,6806 端口也未被使用,思源没有运行,请问应该怎样部署?

docker run -v /root/siyuan/conf:/siyuan/conf -v /root/siyuan/data:/siyuan/data -p 6806:6806 b3log/siyuan --resident=true --conf=/siyuan/conf

image.png

image.png

广告 我要投放

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...
  • zjp
    支持者 订阅者 作者

    木有。。。。。

  • 其他回帖
  • zjp
    支持者 订阅者 作者

    image.png

    不添加 -v 参数可以打开思源,但是点击打开目录和登录均无反应,终端输出如下

    [root@VM_0_8_centos ~]# docker run -p 6806:6806 b3log/siyuan --resident=true
    I 2020/12/30 09:29:59 main.go:121: 
      ____    _  __   __
     / ___|  (_) \ \ / /  _   _    __ _   _ __
     \___ \  | |  \ V /  | | | |  / _` | | '_ \
      ___) | | |   | |   | |_| | | (_| | | | | |
     |____/  |_|   |_|    \__,_|  \__,_| |_| |_|
    
    I 2020/12/30 09:30:00 main.go:122: kernel [v0.5.45] is booting, runtime mode is [prod], working directory is [/opt/siyuan], temp directory is [/tmp/siyuan], read only [false]
    I 2020/12/30 09:30:00 lang.go:64: initialized languages
    D 2020/12/30 09:30:00 conf.go:106: check device locale failed: detect: not detected
    D 2020/12/30 09:30:00 conf.go:107: using default language [zh_CN]
    I 2020/12/30 09:30:00 rsa.go:31: private key [-----BEGIN RSA PRIVATE KEY-----...]
    I 2020/12/30 09:30:00 rsa.go:32: public key [ssh-rsa AAAAB3N...]
    I 2020/12/30 09:30:00 conf.go:171: local serve path [http://127.0.0.1:6806]
    I 2020/12/30 09:30:00 conf.go:175: initialized conf
    I 2020/12/30 09:30:01 main.go:165: kernel HTTP server is booting [http://0.0.0.0:6806]
    I 2020/12/30 09:30:01 webdav.go:36: initialized WebDAV server
    I 2020/12/30 09:30:01 conf.go:292: initialized notebook
    I 2020/12/30 09:30:01 repo.go:39: initialized git repo
    I 2020/12/30 09:30:01 process.go:25: kernel is running with [resident] mode
    I 2020/12/30 09:30:01 updater.go:84: do not auto update in docker
    E 2020/12/30 09:35:19 log.go:44: PANIC RECOVERED: runtime error: invalid memory address or nil pointer dereference
    	/usr/local/go/src/runtime/panic.go:969 (0x43e958)
    /usr/local/go/src/runtime/panic.go:212 (0x455852)
    /usr/local/go/src/runtime/signal_unix.go:742 (0x4556d2)
    /go/src/github.com/siyuan-note/siyuan-src/kernel/model/box.go:381 (0x10d968d)
    /go/src/github.com/siyuan-note/siyuan-src/kernel/model/box.go:987 (0x10e02e4)
    /go/src/github.com/siyuan-note/siyuan-src/kernel/cmd/refreshtree.go:21 (0x11284da)
    /go/src/github.com/siyuan-note/siyuan-src/kernel/cmd/cmd.go:219 (0x112eaf2)
    /usr/local/go/src/runtime/asm_amd64.s:1374 (0x477ce0)
    
    E 2020/12/30 09:37:22 log.go:44: PANIC RECOVERED: runtime error: invalid memory address or nil pointer dereference
    	/usr/local/go/src/runtime/panic.go:969 (0x43e958)
    /usr/local/go/src/runtime/panic.go:212 (0x455852)
    /usr/local/go/src/runtime/signal_unix.go:742 (0x4556d2)
    /go/src/github.com/siyuan-note/siyuan-src/kernel/model/box.go:381 (0x10d968d)
    /go/src/github.com/siyuan-note/siyuan-src/kernel/model/box.go:987 (0x10e02e4)
    /go/src/github.com/siyuan-note/siyuan-src/kernel/cmd/refreshtree.go:21 (0x11284da)
    /go/src/github.com/siyuan-note/siyuan-src/kernel/cmd/cmd.go:219 (0x112eaf2)
    /usr/local/go/src/runtime/asm_amd64.s:1374 (0x477ce0)
    
    
  • 88250
    订阅者

    还是要添加 -v,宿主机上已经手工创建好 /siyuan/conf/ 文件夹了么?

    1 回复
  • dange414
    订阅者

    请问这个问题您解决了吗,我也遇见了一样的问题,无法创建目录和笔记

    1 回复
  • 查看全部回帖