docker版alist无法读取/home文件夹下的文件 #6041
-
docker版alist无法读取/home文件夹下的文件 |
Beta Was this translation helpful? Give feedback.
Answered by
darkelfzdy
Feb 15, 2024
Replies: 2 comments 5 replies
-
建docker容器的时候需要映射才能读取,加一条:-v /home:/home |
Beta Was this translation helpful? Give feedback.
4 replies
-
啊,还有这种事 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker run -d --restart=unless-stopped -v /etc/alist:/opt/alist/data -v /home:/home -p 5244:5244 -e PUID=0 -e PGID=0 -e UMASK=022 --name="alist" xhofe/alist:latest
如果想对本地哪个目录,就想这样加进去,这就是映射。因为docker是封闭的容器,如果不映射是没法读取本地内容的