2024-08-22, 03:45 PM
I have just finished setting up Jellyfin in a docker container on my Synology box (running DSM 6) and spent a few days getting all the metadata updated properly everything configured the way I want.
Now I want to make sure I know how to update the container without breaking anything whenever there is a new software version released. I know there are automated ways to keep the container updated, but I would prefer to only update on demand at this point.
With that said, I have created a task in Synology that I "think" will update the container, but I am a bit nervous about running it the first time and potentially losing all the work I have already done.
(NOTE: I have taken a complete backup of my docker container, so in theory I should be able to restore that if anything goes wrong, but I don't have any experience restoring containers)
Is there anyone who can tell me whether the script below appears to be defined correctly to update the container? I realize you don't have all the specific details on my configuration, but do the steps look logically correct? Have I missed anything?
Now I want to make sure I know how to update the container without breaking anything whenever there is a new software version released. I know there are automated ways to keep the container updated, but I would prefer to only update on demand at this point.
With that said, I have created a task in Synology that I "think" will update the container, but I am a bit nervous about running it the first time and potentially losing all the work I have already done.
(NOTE: I have taken a complete backup of my docker container, so in theory I should be able to restore that if anything goes wrong, but I don't have any experience restoring containers)
Is there anyone who can tell me whether the script below appears to be defined correctly to update the container? I realize you don't have all the specific details on my configuration, but do the steps look logically correct? Have I missed anything?
Code:
docker stop jellyfin
docker rm jellyfin
docker pull jellyfin/jellyfin:latest
docker run -d --name=jellyfin \
-v /volume1/docker/jellyfin/config:/config \
-v /volume1/docker/jellyfin/cache:/cache \
-v /volume2/Video/Movies:/video-movies:ro \
-v /volume2/Video/Series:/video-series:ro \
-v /volume2/Video/Wrestling:/video-wrestling:ro \
-v /volume2/Video/Other:/video-other:ro \
-v /volume2/Music:/music:ro \
--user 1026:100 \
--net=host \
--restart always \
jellyfin/jellyfin