Running ReStreamer in Docker

7 February 2021

Running ReStreamer in Docker

ReStreamer is an app that allows live video streaming on your website without having to use a streaming provider. It runs in Docker on pretty much any platform, like Windows, Ubuntu Linux, RaspberryPi's, as long as you have Docker installed of course. In this article, I'll show how to first install Docker on Ubuntu 20.04 and directly after we run the ReStreamer docker.

Installing Docker and Docker Compose

sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io

There is more information on installing Docker available on their website if you need it: https://docs.docker.com/engine/install/ubuntu/.

Let's run ReStreamer now

Now let's run the ReStreamer Docker using a set of directives that allows us to set our own username & password to login. Edit this first before you paste the next command. You can also choose to run the web interface on a different port as 8080.

docker run -d --restart always \
     --name restreamer \
     -e "RS_USERNAME=admin" -e "RS_PASSWORD=YourPassword" \
     -p 8080:8080 -v /mnt/restreamer/db:/restreamer/db \
     datarhei/restreamer:latest

Once it is running you can open the web interface by opening in your browser: http://server.ip.address:8080/.

Much more information on using ReStreamer can be found in the documentation on the official website here: https://datarhei.github.io/restreamer/docs/index.html.

Stopping ReStreamer / Docker

To stop ReStreamer we'll need to stop the Docker container that it's running in. Here's how to do this. This first command will list all the running Docker instances.

sudo docker ps -a

This will return a list with all running Dockers, and each line starts with the ID of the Docker. We're going to use this ID to stop the container.

sudo docker container stop {docker ID}

When you run the previous command again, you'll see that the Docker has exited.

Pick a star to rate this
Table of Contents

Leave a Reply

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

Unrelated Content

26 June 2025
Why Self-Hosting Your Livestream Is Safer, Cheaper, and More Flexible Than Commercial Platforms

With livestreaming more popular than ever, platforms like YouTube Live, Twitch, Vimeo, and Facebook Live have become household names. But are they really the best option for everyone? If you're a tech-savvy creator, a privacy-conscious broadcaster, or someone who just wants full control, self-hosting your own livestream server might be a better choice. In this […]

READ MORE
27 November 2020
Motivation behind this website

For every service that is offered for a lot of money on the internet, there's always a free or much cheaper alternative, especially if you embrace open-source software. For live-streaming this is also very much the case. We love that,

READ MORE
23 January 2021
Introduction to the new how-to article in the Knowledge Base.

I wrote a new guide on setting up your own live-stream server. Mostly due to your requests. I took the opportunity to simplify and shorten the guide a bit. If you follow this guide step by step, and use your brain a tiny bit, you'll be fine. This guide has so far been tested on […]

READ MORE
25 January 2021
Optimizing First-Frame Bitrate for HLS

When responding to an HLS request, the streaming server determines which video quality (i.e., ts file) the client will attempt to play before switching to a lower or higher quality video. This switch depends on available bandwidth and device type. Switching to the wrong quality first degrades the user experience considerably. For instance, sending a […]

READ MORE
25 January 2021
Adaptive Bit-rate Streaming

“What is adaptive streaming?” This question often leads to answers filled with technical terms like “HLS”, “MPEG-DASH”, “segments” and “codec“. This article is written for people who need to understand the principles, but don’t need to actually implement the technology. If you are looking for specific technical information on adaptive streaming then I recommend you read up on it on this website and elsewhere.

READ MORE
2 February 2021
About Bradmax Video Player WordPress plugin

Let's talk about our favorite video player plugin for WordPress. Here are some reasons why Bradmax Player is our favorite. And below that are detailed instructions on how to set it up. Setting it up may at first seem a bit awkward, but it really isn't. First you must obviously install the Bradmax Player plugin […]

READ MORE
Copyright © 2025. 
All rights reserved.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram