Tomorrows Technology Today

How To

How to update Jellyfin Docker image

There is a new version of jellyfin media server relased 10.9.1 so I thought its about time I updated my docker container. There are multiple ways to do this depending on your setup. In my case I am using a docker compose file. So here I show that method.

First I had to find where I left the docker-compose yaml on my server. Use locate or find tools for that

locate docker-compose.yml 

navigate to the directory with the docker-compose file and lets have a quick check in the yaml to see how it looks

root@nuc:/home/futurereboot/jellyfin# more docker-compose.yml
version: "3.5"
services:
  jellyfin:
    image: jellyfin/jellyfin
    container_name: jellyfin
    # user: uid:gid
    network_mode: "host"
    volumes:
      - /home/futurereboot/jellyfin/config:/config
      - /home/futurereboot/jellyfin/cache:/cache
      - /data:/media
      - /mediadrive:/media2
      # - /path/to/media2:/media2:ro
    restart: "unless-stopped"
    # Optional - alternative address used for autodiscovery
    environment:
      - JELLYFIN_PublishedServerUrl=http://192.168.3.77:8096

lets grab the latest jellyfin image with docker pull

root@nuc:/home/futurereboot/jellyfin# docker pull jellyfin/jellyfin
Using default tag: latest
latest: Pulling from jellyfin/jellyfin
b0a0cf830b12: Pull complete
......
0a026cf30c77: Pull complete
Digest: sha256:54fa2eeac1dbb91aa1cadd8e741c0952792697ca996a8f1bd5e115d0550b6da8
Status: Downloaded newer image for jellyfin/jellyfin:latest
docker.io/jellyfin/jellyfin:latest

Lets check the images, we can see its almost 2 years since I updated jellyfin (if it ain’t broke….)

root@nuc:/home/futurereboot/jellyfin# docker images
REPOSITORY          TAG       IMAGE ID       CREATED         SIZE
jellyfin/jellyfin   latest    c9a520bbdfdf   38 hours ago    1.05GB
jellyfin/jellyfin   <none>    5312c124891c   21 months ago   938MB

ok now stop the current jellyfin server

    root@nuc:/home/futurereboot/jellyfin# docker-compose down

and remove the old image

root@nuc:/home/futurereboot/jellyfin#docker rmi 5312c124891c

and start the server again with the new image

root@nuc:/home/futurereboot/jellyfin# docker-compose up -d

then browse to the URL and check it works!

Leave a Reply

Your email address will not be published. Required fields are marked *