jxxghp / MoviePilot

NAS媒体库自动化管理工具
https://wiki.movie-pilot.org
GNU General Public License v3.0
6.92k stars 836 forks source link

选择目录没有挂载磁盘的目录 #2438

Closed 137054853a closed 5 months ago

137054853a commented 5 months ago

确认

当前程序版本

v1.9.9

运行环境

Docker

问题类型

主程序运行问题

问题描述

环境:ubuntu虚拟机中,docker运行,版本号 v1.9.9。 虚拟机挂载了一块磁盘,映射到/data下 设置下载目录,媒体目录时候没有data这个目录

发生问题时系统日志和配置文件

No response

137054853a commented 5 months ago

image 无/data 目录,在容器命令上已经添加 --privileged=true 参数

zoffyultraman commented 5 months ago

容器命令全部贴出来

137054853a commented 5 months ago

sudo docker run -itd \ --name moviepilot \ --hostname moviepilot \ --privileged=true \ -p 3000:3000 \ -v /data/public/media:/media \ -v /opt/moviepilot/config:/config \ -v /opt/moviepilot/core:/moviepilot/.cache/ms-playwright \ -v /var/run/docker.sock:/var/run/docker.sock:ro \ -e 'NGINX_PORT=3000' \ -e 'PORT=3001' \ -e 'PUID=0' \ -e 'PGID=0' \ -e 'UMASK=000' \ -e 'TZ=Asia/Shanghai' \ -e 'AUTH_SITE=iyuu' \ -e 'IYUU_SIGN=xxxx' \ -e 'SUPERUSER=admin' \ -e 'API_TOKEN=moviepilot' \ --log-driver "json-file" \ --log-opt "max-size=5m" \ --restart always \ jxxghp/moviepilot:latest

singer1026 commented 5 months ago

sudo docker run -itd --name moviepilot --hostname moviepilot --privileged=true -p 3000:3000 -v /data/public/media:/media -v /opt/moviepilot/config:/config -v /opt/moviepilot/core:/moviepilot/.cache/ms-playwright -v /var/run/docker.sock:/var/run/docker.sock:ro -e 'NGINX_PORT=3000' -e 'PORT=3001' -e 'PUID=0' -e 'PGID=0' -e 'UMASK=000' -e 'TZ=Asia/Shanghai' -e 'AUTH_SITE=iyuu' -e 'IYUU_SIGN=xxxx' -e 'SUPERUSER=admin' -e 'API_TOKEN=moviepilot' --log-driver "json-file" --log-opt "max-size=5m" --restart always jxxghp/moviepilot:latest

尝试重启下docker容器

137054853a commented 5 months ago

sudo docker run -itd --name moviepilot --hostname moviepilot --privileged=true -p 3000:3000 -v /data/public/media:/media -v /opt/moviepilot/config:/config -v /opt/moviepilot/core:/moviepilot/.cache/ms-playwright -v /var/run/docker.sock:/var/run/docker.sock:ro -e 'NGINX_PORT=3000' -e 'PORT=3001' -e 'PUID=0' -e 'PGID=0' -e 'UMASK=000' -e 'TZ=Asia/Shanghai' -e 'AUTH_SITE=iyuu' -e 'IYUU_SIGN=xxxx' -e 'SUPERUSER=admin' -e 'API_TOKEN=moviepilot' --log-driver “json-file” --log-opt ”max-size=5m“ --始终重新启动 jxxghp/moviepilot:latest

尝试重启下docker容器

已经重启过很多次了,无效

zoffyultraman commented 5 months ago

“/data/public/media:/media” 虽然但是你虚拟机映射了data,但是容器内的路径是media,是否存在这个路径,这个路径内容是否和你本机的/data/public/media目录内容一致

nzmkNARUTO commented 5 months ago

sudo docker run -itd --name moviepilot --hostname moviepilot --privileged=true -p 3000:3000 -v /data/public/media:/media -v /opt/moviepilot/config:/config -v /opt/moviepilot/core:/moviepilot/.cache/ms-playwright -v /var/run/docker.sock:/var/run/docker.sock:ro -e 'NGINX_PORT=3000' -e 'PORT=3001' -e 'PUID=0' -e 'PGID=0' -e 'UMASK=000' -e 'TZ=Asia/Shanghai' -e 'AUTH_SITE=iyuu' -e 'IYUU_SIGN=xxxx' -e 'SUPERUSER=admin' -e 'API_TOKEN=moviepilot' --log-driver "json-file" --log-opt "max-size=5m" --restart always jxxghp/moviepilot:latest

你把容器外部的/data/public/media目录映射到容器内部的/media,那你应该在容器内部找/media这个目录。你容器内是否有/media这个目录?