brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

🐳Guide: Updating Docker Containers via the Unraid Terminal

🐳Comprehensive Guide: Updating Docker Containers via the Unraid Terminal

Guide terminal

9 steps 3 min read

This guide uses Jellyfin to show a manual update from start to finish.

Step 1 of 9: Why use the terminal instead of the GUI?

The Update button in the Unraid Docker tab works, but the terminal has some advantages:

  • Progress: you see exactly which layers are being downloaded and their extraction status.
  • Errors: if an update fails due to network issues or repository changes, the CLI provides specific error codes that the GUI might hide.
  • Speed: once you are familiar with the commands, it is often faster than waiting for the WebUI to refresh.
  • Scripting: this is the first step toward your own maintenance scripts.

Step 2 of 9: Open your Unraid terminal

You can open a shell in two ways:

  • Web Terminal: Click the >_ icon in the top right corner of the Unraid WebGUI.
  • SSH: Use a client like Terminal (macOS/Linux), PowerShell, or PuTTY (Windows).
ssh root@your-unraid-ip

Step 3 of 9: Pull the latest image

The image is the blueprint of your application. Before touching the running service, download the newest version.

docker pull jellyfin/jellyfin:latest

What happens here?

Docker checks the official Jellyfin repository on Docker Hub. It compares your local version with the remote one and downloads only the “diff” (the parts that have changed), which saves time and bandwidth.

Step 4 of 9: Stop and remove the old container

To update a container you delete the old one and create a new one from the new image.

Your data is safe. Unraid keeps your settings, library and watch history in persistent folders (usually in /mnt/user/appdata/jellyfin), so deleting the container does not delete them.

Stop the container:

docker stop jellyfin

This allows Jellyfin to close database connections gracefully.

Remove the container:

docker rm jellyfin

This removes the execution layer, clearing the path for the new version.

Step 5 of 9: Recreate the container

Now start the service again from the image you pulled in step 2.

  1. Navigate to the Docker tab in Unraid.
  2. Click Add Container at the bottom.
  3. Select jellyfin from the “Template” dropdown menu.
  4. Unraid will automatically fill in all your previous settings.
  5. Click Apply.

Unraid will detect the new image on your disk and build the container immediately.

Step 7 of 9: Method B: CLI only (advanced)

If you prefer to stay in the terminal, run your docker run command directly. Include your hardware acceleration parameters (like --device /dev/dri) if you use Intel QuickSync or NVENC.

Step 8 of 9: With Docker Compose

If you use the Docker Compose Manager plugin, the whole process above comes down to two commands:

docker-compose pull
docker-compose up -d

The -d flag runs it in “detached” mode (background). Docker Compose stops, removes and restarts the container for you.

Step 9 of 9: Check the result

After the container starts, check the logs for database migration errors:

docker logs -f jellyfin

If you see Server is up and running, the update worked and you are running the latest Jellyfin.

Link