2025-03-24, 08:03 PM
In Docker you are creating a self contained environment. The container is only aware of things external to it when you "map" that external folder/device/network to it.
If you did not configure a "host to container" mapping, the container is not aware of it. Additionally, since you did not configure a mapping from a folder on your host to "/config" in the container, if you were to update the container you would lose all your data. You need to go into the config for Jellyfin in portainer UI and map a folder on your host for both /config and /cache as well as map your media.
I use docker compose, but I think it kind of shows what I am talking about. The directory to the left of the colon is the path host, the path on the right is how it is mapped into the container.
The path you map on the right, the "container side", is arbitrary except for /config and /cache. You can map your media any which way you want.
Your library is in /mnt/movies and /mnt/tv? You can map that into the container as simply /movies and /tv.
The portainer UI will provide a similar distinction between host and container paths.
If you did not configure a "host to container" mapping, the container is not aware of it. Additionally, since you did not configure a mapping from a folder on your host to "/config" in the container, if you were to update the container you would lose all your data. You need to go into the config for Jellyfin in portainer UI and map a folder on your host for both /config and /cache as well as map your media.
I use docker compose, but I think it kind of shows what I am talking about. The directory to the left of the colon is the path host, the path on the right is how it is mapped into the container.
Code:
volumes:
- ./jellyfin-prod-data/config:/config
- ./jellyfin-prod-data/cache:/cache
- /media/storage2/tempLibrary:/media/tempLibrary:ro
- /media/library:/media/library
The path you map on the right, the "container side", is arbitrary except for /config and /cache. You can map your media any which way you want.
Your library is in /mnt/movies and /mnt/tv? You can map that into the container as simply /movies and /tv.
Code:
/mnt/movies:/movies
/mnt/tv:/tv
The portainer UI will provide a similar distinction between host and container paths.