SOLVED: How to update docker container - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +--- Thread: SOLVED: How to update docker container (/t-solved-how-to-update-docker-container) |
How to update docker container - e900542 - 2023-09-25 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. RE: How to update docker container - bitmap - 2023-09-25 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 RE: How to update docker container - nooobieee - 2023-09-25 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. RE: How to update docker container - bitmap - 2023-09-25 (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: 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. RE: How to update docker container - e900542 - 2023-09-25 This is the solution I used to upgrade. Worked simply and as described. Thanks~ |