• 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 SOLVED: How to update docker container

     
    • 0 Vote(s) - 0 Average

    SOLVED: How to update docker container

    e900542
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Jul
    Reputation: 2
    #1
    2023-09-25, 02:53 PM
    I have recently installed the jellyfin 10.1.10 jellyfin/jellyfin:latest container with local mount points for data / config using the jellyfin docs. I now need to upgrade to version 10.1.11 remotely using CLI (only).  I have searched the googles and am confused in what to do.  I see the docker pull command and and the docker build command.  I have not seen anything specific to docker upgrades in the doc (unless I am missing something. I am afraid of losing all my config / data so I wanted to confirm with the forum which command is most appropriate.
    Go to solution
    bitmap
    Offline

    Community Moderator

    Posts: 851
    Threads: 9
    Joined: 2023 Jul
    Reputation: 28
    #2
    2023-09-25, 03:21 PM
    With containers, the only data that sticks around (persistent) is the data you have a mounted volume to store information in. If you have volumes for config and other recommended persistent data areas (all mentioned in the docs), your data will be present when you update.

    You can update your container using four commands: docker stop, rm, pull, run. You need your container name or ID (you can get it using "docker ps") for the first two. The first stops the container gracefully, the second removes all non-persistent data. The third command you use the container designation you stated in your first sentence (jellyfin/jellyfin:latest). The last you need to match your original run command so that one will be the most difficult for me to mimic but hopefully you wrote it down or documented it somewhere. Should be something like this:

    Code:
    docker stop jellyfin
    docker rm jellyfin
    docker pull jellyfin/jellyfin:latest
    docker run -d \
    --name jellyfin \
    --user 1000:1000 \
    --net=host \
    --volume /path/to/config:/config
    --volume /path/to/cache:/cache
    --volume /path/to/media:/media \
    --restart=unless-stopped \
    jellyfin/jellyfin:latest
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    nooobieee
    Offline

    Junior Member

    Posts: 9
    Threads: 0
    Joined: 2023 Jul
    Reputation: 0
    Country:United States
    #3
    2023-09-25, 03:23 PM (This post was last modified: 2023-09-25, 03:23 PM by nooobieee.)
    I don't use "latest" as my tag as I only want to upgrade on purpose. But once I updated the yml file to reference 10.8.11, the command I used is simple:


    docker-compose down
    docker-compose up -d

    If you're concerned about losing anything, just back it up.
    bitmap
    Offline

    Community Moderator

    Posts: 851
    Threads: 9
    Joined: 2023 Jul
    Reputation: 28
    #4
    2023-09-25, 04:18 PM
    (2023-09-25, 03:23 PM)nooobieee Wrote: I don't use "latest" as my tag as I only want to upgrade on purpose. But once I updated the yml file to reference 10.8.11, the command I used is simple:


    docker-compose down
    docker-compose up -d

    If you're concerned about losing anything, just back it up.

    While I'm a compose fan rather than vanilla docker, they don't quite work the exact same. Though if @e900542 hasn't considered it yet, compose is definitely the way to go with docker IMO. Learn a little bit of yaml and your docker world gets a lot easier.
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    e900542
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Jul
    Reputation: 2
    #5
    2023-09-25, 05:35 PM (This post was last modified: 2023-09-25, 05:36 PM by e900542. Edited 1 time in total.)
    This is the solution I used to upgrade. Worked simply and as described.

    Thanks~
    « 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