The feature you're looking for is called bind mounts. https://docs.docker.com/storage/bind-mounts/
If I understand what you want to do, it is 100% possible, and I'm doing almost the exact same thing with my Plex.
A community for discussing Plex Media Server. Plex Media Server is a smart software that makes playing movies, tv shows, and other media on your computer simple.
Ask questions, get support, and be part of the community here on Lemmy!
Join the c/Plex community on Matrix!
Rule 1 - Don't be a dick
Don't be a dick. This includes any kind of trolling, baiting, etc. Bigotry may result in an instant permaban.
Rule 2 - No misleading or non-descriptive titles
No misleading or non-descriptive titles. Try to be brief but detailed.
Rule 3 - Keep post and comments relevant
Posts must be related to Plex and Plex-related products, apps. etc. Try to keep comments relevant to the parent comment and to the post.
Rule 4 - Keep discussions of "media aqcuistion" limited to means and methods only.
Discussions regarding media acquisition should be limited to the "how" not the "what", as this is not the place to discuss piracy of specific media. There are other communities for that, and we don't want to get this community defederated from instances where it's a forbidden topic. Posts/comments discussing specific acts of piracy ("How do I find X show?" or "Where can I download Y film?")will be removed. For further clarification see this post
Rule 5 - No asking / offering Plex shares.
No asking / offering Plex shares. There are other communities for that.
Rule 6 - No low-effort / spam / meme posts
No low-effort / meme posts. These are considered spam, and will be removed. Repeat offenses may result in a ban.
Rule 7 - No referral / self-promotion / affiliate links, personal voting / campaigning / funding, or selling posts
No referral / self-promotion / affiliate links, personal voting / campaigning / funding, or selling posts. These are considered spam, and will be removed. Repeat offenses may result in a ban.
^This^ ^is^ ^a^ ^community^ ^page^ ^and^ ^is^ ^not^ ^affiliated^ ^with^ ^Plex,^ ^Inc.^ ^in^ ^any^ ^way.^
The feature you're looking for is called bind mounts. https://docs.docker.com/storage/bind-mounts/
If I understand what you want to do, it is 100% possible, and I'm doing almost the exact same thing with my Plex.
If you spend a little extra time and create a docker compose file, you’ll save yourself in the long run
Lol I will. If only you knew how long I have spent getting this right so far. But worth it, it's working perfectly at the moment .
Take a look at the docker-compose example in your link
volumes:
- /media/<your folder on host machine>:/<location you want to mount to inside docker container>
That's great, thank you, will get on it tomorrow. Will I need to change permissions on the media folders?
Potentially. It'll all depend on the permissions in the host (they're inherited iirc) and the user you're running your docker container as. I think if I remember correctly I made them 775 and all of the video stack related programs shared a group