Docker permission issues are one of the most common problems when running TorBox Media Center. This guide explains how Docker handles permissions and how to fix common permission-related errors.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/torbox-app/torbox-media-center/llms.txt
Use this file to discover all available pages before exploring further.
Understanding Docker permissions
When Docker creates files and directories, it uses the user ID (UID) and group ID (GID) of the process running inside the container. By default, this is often theroot user (UID 0), which can cause permission conflicts with your host system.
The permission mismatch problem
If Docker creates files asroot but your host user doesn’t have permission to access them, you’ll encounter errors like:
- Nothing showing up in the mounted space
- Permission denied when accessing files
- Media servers unable to read the mounted files
Fixing permission issues
The recommended solution is to usechown to change the ownership of the mounted directory to your user.
Finding your user and group
Get your current user’s ID and group:Using chown to fix permissions
Fix ownership for the mount directory:-R: Recursively changes ownership of all files and subdirectories$(whoami): Uses your current username for both user and group- Changes ownership of
/home/$(whoami)/torboxand everything inside it
1000:1000 with your actual UID:GID from the id command.
Verify permissions
Check the permissions of your directory:Volume mapping best practices
Proper volume mapping is critical for both the TorBox Media Center and your media server to access the same files.Understanding volume syntax
The volume mapping syntax is:- host_path: The actual directory on your computer
- container_path: Where the directory appears inside the Docker container
Example: Coordinating multiple containers
Let’s say you want TorBox Media Center to save files to/home/wamy/torbox on your host system.
TorBox Media Center setup:
- Maps
/home/wamy/torbox(host) to/torbox(container) - Sets
MOUNT_PATH=/torboxso files are created at/torboxinside the container - Results in files appearing at
/home/wamy/torboxon the host
- Maps the same host directory
/home/wamy/torboxto/torbox-media-centerinside Jellyfin - Allows Jellyfin to access the files at
/torbox-media-center/moviesand/torbox-media-center/series
Common permission errors
Error: Permission denied
chown to fix the directory permissions:
Error: Cannot create directory
Error: Files owned by root
If files are created asroot:root, your media server may not be able to read them.
Solution: Stop the container, fix permissions, and restart:
FUSE-specific permissions
When using thefuse mount method, additional permissions are required.
Required capabilities
The container needs theSYS_ADMIN capability to mount FUSE filesystems:
Device access
The/dev/fuse device must be accessible:
Complete FUSE example
Quick reference
| Issue | Solution |
|---|---|
| Files owned by root | Use chown -R $(whoami):$(whoami) on the mount directory |
| Permission denied errors | Use chown -R $(whoami):$(whoami) on the mount directory |
| Media server can’t access files | Ensure both containers map the same host directory |
| Directory doesn’t exist | Create it with mkdir -p before running the container |
| FUSE mount fails | Add SYS_ADMIN capability and /dev/fuse device |