• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Updating Jellyfin docker container on Synology DSM 6

     
    • 0 Vote(s) - 0 Average

    Updating Jellyfin docker container on Synology DSM 6

    Sargon
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2024 Aug
    Reputation: 0
    #1
    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?

    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
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-08-22, 05:18 PM
    "docker rm jellyfin" is the part that removes the image used to create the jellyfin container. This forces docker to actually check for the latest jellyfin image and pull it down.

    Alternatively, if you're able to use docker compose the "--force-recreate" flag will do the same thing.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,167
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #3
    2024-08-22, 06:21 PM
    From what I see, everything appears good.

    The only bit of advice I would give is to add a bit more to make a copy of the config folder and store it in a separate location on the NAS so that if the new Jellyfin update breaks something, you have a backup from just before the update. Just make sure the container is shut down before starting the copy task so the database doesn't have a chance of being copied during and operation and getting your backup in a corrupted state.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-08-22, 06:27 PM (This post was last modified: 2024-08-22, 06:28 PM by TheDreadPirate. Edited 1 time in total.)
    (2024-08-22, 06:21 PM)Efficient_Good_5784 Wrote: From what I see, everything appears good.

    The only bit of advice I would give is to add a bit more to make a copy of the config folder and store it in a separate location on the NAS so that if the new Jellyfin update breaks something, you have a backup from just before the update. Just make sure the container is shut down before starting the copy task so the database doesn't have a chance of being copied during and operation and getting your backup in a corrupted state.

    To refine on this point, you should use rsync instead of plain copy.  Copy will do a sufficient job of making a backup, but will never cleanup files that are no longer present at the source.  If you rename, delete, or re-identify media the associated metadata (like images) will change.  Copy will not touch the now obsolete metadata. This can cause the backup to bloat over time as old images, subtitles, etc., are not cleaned up.

    Rsync CAN cleanup the destination when files are deleted at the source.

    Code:
    rsync -a -p --progress /volume1/docker/jellyfin/config /path/to/backup/directory/ --delete

    The --delete option is what cleans up the destination folder when files are no longer present at the source.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Sargon
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2024 Aug
    Reputation: 0
    #5
    2024-08-22, 06:57 PM
    (2024-08-22, 05:18 PM)TheDreadPirate Wrote: "docker rm jellyfin" is the part that removes the image used to create the jellyfin container.  This forces docker to actually check for the latest jellyfin image and pull it down.
    I believe, based on what you are saying here, that the explicit "docker pull" line would be unnecessary because the run statement is going to pull the latest image down anyway.  Is that true?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-08-22, 07:12 PM
    The explicit pull is not necessary. When you execute "docker run" it would pull it at that point.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode