I installed docker pre-installed on Ubuntu 24 system.I want to use docker to load nas-tools and Jellyfin to build a nas.BUT,When I want to map a folder, I find that the folder mapping in the root directory will fail, but the folder mapping in the home directory will succeed.for example:
services:
nas-tools:
image: hsuyelin/nas-tools:latest
ports:
- 3000:3000
volumes:
- /home/admin//docker-compose/nas-tools:/config
- /home/admin/video:/video
environment:
- user=root
- UMASK=000
will work good.but:
services:
nas-tools:
image: hsuyelin/nas-tools:latest
ports:
- 3000:3000
volumes:
- /home/admin/docker-compose/nas-tools:/config
- /data1/video:/video
environment:
- user=root
- UMASK=000
will failed, /data1 is a folder mounted on another diskI can’t read or write any file in /data1/video by docker volumes.
This is really bothering me. Can someone help me?
I try chmod -R 777 /data1
and change the source dir to /tmp/video
but it don’t work.
yz y is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.