docker 中运行 syncthing 问题

219 天前
 n2l

linux 的 docker 中部署好了 syncthing ,多次验证后发现问题如下:

判断问题出现在 docker 对 usb 的访问限制上,但是真正通过 docker exec 进入了 container 中后,又可以看见 upload 文件夹,里面的照片也都能看见,既然能看见,又不能扫描,不知道要怎么搞,求指教,最后附上 compose 文件,usb 设备挂载到/mnt/usb 。

services:
  syncthing:
    image: lscr.io/linuxserver/syncthing:latest
    container_name: syncthing
    environment:
      - PUID=0
      - PGID=0
      - TZ=Etc/UTC
    volumes:
      - /home/xx/syncthing/config:/config
      - /mnt/usb/mt-photos/upload:/upload
    ports:
      - 8384:8384
      - 22000:22000/tcp
      - 22000:22000/udp
      - 21027:21027/udp
    restart: unless-stopped
449 次点击
所在节点    问与答
1 条回复
n2l
218 天前
有人知道吗?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1113603

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX