Skip to content
Discussion options

You must be logged in to vote

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是封闭的容器,如果不映射是没法读取本地内容的

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@hhhhhge
Comment options

@hhhhhge
Comment options

@darkelfzdy
Comment options

Answer selected by hhhhhge
@hhhhhge
Comment options

Comment options

You must be logged in to vote
1 reply
@darkelfzdy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants