Installing Jellyfin Media Server with Docker
Jellyfin is an open-source media server that allows you to organize, stream, and access your media content from various devices. By using Docker, we can easily set up Jellyfin and manage its configuration and data in isolated containers. In this guide, we’ll show you how to install Jellyfin using Docker and ensure it starts automatically.
Step 1: Install Docker
Before proceeding, ensure you have Docker installed on your system. If you haven’t installed Docker yet, follow the official Docker installation instructions for your operating system.
Step 2: Pull Jellyfin Docker Image
To install Jellyfin, pull the latest Docker image from Docker Hub using the following command:
docker pull jellyfin/jellyfin:latest
Step 3: Create a Docker Container for Jellyfin
Run the following command to create a Docker container for Jellyfin with proper volume and network configurations:
docker run -d --restart always --name jellyfin -v jellyfin_config:/config -v jellyfin_cache:/cache -v jellyfin_media:/media --net=host jellyfin/jellyfin:latest
Explanation of options used:
-d: Run the container in the background (detached mode).
--restart always: Configure the container to automatically restart if it stops unexpectedly.
--name jellyfin: Assign the name “jellyfin” to the container for easy management.
-v jellyfin_config:/config: Create a Docker volume named “jellyfin_config” to persist the Jellyfin configuration data.
-v jellyfin_cache:/cache: Create a Docker volume named “jellyfin_cache” to store the Jellyfin cache data.
-v jellyfin_media:/media: Create a Docker volume named “jellyfin_media” to mount your media content.
--net=host: Use the host’s network stack to simplify network configuration and improve performance.
Step 4: Access Jellyfin
Once the Jellyfin container is running, you can access the Jellyfin web interface by opening a web browser and navigating to
http://localhost:8096. From here, you can set up Jellyfin and start adding your media libraries.
Step 5: Clean Up
If you want to stop and remove the Jellyfin container and volumes, use the following commands:
docker stop jellyfin
docker rm jellyfin
docker volume rm jellyfin_config jellyfin_cache jellyfin_media
You’ve successfully installed Jellyfin media server using Docker, providing a powerful platform to organize and stream your media content across devices. Docker allows you to manage Jellyfin in an isolated and portable environment, ensuring easy setup and deployment. Enjoy exploring Jellyfin’s features and transforming your Raspberry Pi into a media powerhouse!
Happy media streaming!