leimao / Docker-WeChat

Run WeChat Using Docker
https://leimao.github.io/blog/Docker-WeChat/
MIT License
38 stars 5 forks source link

微信接收到的文件 属于root用户,外边的用户是普通用户,通过docker -v 映射后,无法读取文件,权限问题。 #13

Open jiatongwu opened 1 year ago

jiatongwu commented 1 year ago

微信接收到的文件 属于root用户,外边的用户是普通用户,通过docker -v 映射后,无法读取文件,权限问题。 如何解决 ?

我打算通过 docker -u $(id -u):$(id -g) 运行,但是报错了: wujiatong@lenovo700:~$ docker logs -f 56c8aec61b84 A JavaScript error occurred in the main process Uncaught Exception: Error: Failed to get 'logs' path at /opt/weixin/resources/app/packages/main/dist/index.js:2:2464810 at /opt/weixin/resources/app/packages/main/dist/index.js:2:2492114 at Object. (/opt/weixin/resources/app/packages/main/dist/index.js:2:2492118) at Module._compile (node:internal/modules/cjs/loader:1110:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1140:10) at Module.load (node:internal/modules/cjs/loader:982:32) at Module._load (node:internal/modules/cjs/loader:823:12) at Function.c._load (node:electron/js2c/asar_bundle:5:13331) at Object. (node:electron/js2c/browser_init:197:3197) at Object../lib/browser/init.ts (node:electron/js2c/browser_init:197:3401)