2024-12-19, 01:02 AM
(2024-12-18, 05:02 PM)theguymadmax Wrote: You don't have permission to access the specified locations. To resolve this, I recommend the following steps:
1. Create a Docker Folder in Your Home Directory:
Set up a dedicated directory for your Docker containers and their associated data inside your home directory. This way, you will have full control over the directories and avoid permission issues. Make sure folder are created prior to running docker compose up -d.
Directory Structure:
- /home/pete/Docker/
- /home/pete/Docker/Jellyfin/
- /home/pete/Docker/Jellyfin/config/
- /home/pete/Docker/Jellyfin/cache/
- /home/pete/Docker/Jellyfin/docker-compose.yml
2. Update Your docker-compose.yml File:
Modify the volumes section in your docker-compose.yml to point to the new directories you created in your home directory.
Original:
Code:volumes:
- /var/snap/docker/common/var-lib-docker/volumes/jellyfin-config:/var/log/docker/jellyfin/config
- /var/snap/docker/common/var-lib-docker/volumes/jellyfin-cache:/var/log/docker/jellyfin/cache
Updated:
Code:volumes:
- /home/pete/Docker/Jellyfin/config:/config
- /home/pete/Docker/Jellyfin/cache:/cache
Oh ok, thank you for the explanation! I'll most likely stick to this method, but would it be better in the long term for me to use volumes instead of bind mounts?