# Raspberry Pi / ARM

{% hint style="success" %} <mark style="background-color:green;">After installation, control the Restreamer in any browser using the IP and port of the device with the path /ui.</mark>
{% endhint %}

## Requirements

* Raspberry Pi 3 or Pi 4
* ARM CPU with arm32v7 or arm64v8 architecture.

### Verified Raspberry Pi models

* Raspberry Pi 3 Mod. A+
* Raspberry Pi 3 Model B+
* Raspberry Pi 4 Mod. B

{% hint style="info" %}
Alternative single-board computers with enough power are e.g., [ODROID](https://www.hardkernel.com) or from the manufacturer [Pine64](https://pine64.com).
{% endhint %}

## Preparation

### Step 1: Install Docker

If you are already using Docker, skip this step.

1. Install the latest [Raspberry Pi OS-Image](https://www.raspberrypi.com/software/operating-systems/) on a memory card.
2. Log in to the Pi and install Docker according to the [Debian installation guide for armhf.](https://docs.docker.com/engine/install/debian/)

## Installation

### Step 2: Start the Restreamer

**Start** **with hardware support for** **arm32v7**

{% code overflow="wrap" %}

```
docker run --detach --rm --name core --privileged --volume /opt/core/config:/core/config --volume /opt/core/data:/core/data --publish 8080:8080 --publish 8181:8181 --publish 1935:1935 --publish 1936:1936 --publish 6000:6000/udp datarhei/restreamer:rpi-latest
```

{% endcode %}

**Start** **without hardware support for arm32v7 and arm64v8**

{% code overflow="wrap" %}

```

docker run --detach --rm --name core --privileged --volume /opt/core/config:/core/config --volume /opt/core/data:/core/data --publish 8080:8080 --publish 8181:8181 --publish 1935:1935 --publish 1936:1936 --publish 6000:6000/udp datarhei/restreamer:latest
```

{% endcode %}

{% hint style="warning" %}
For security reasons, start the Restreamer only with --privileged if you need hardware support.
{% endhint %}

### Step 3: Open the Restreamer <a href="#step-3-open-the-restreamer" id="step-3-open-the-restreamer"></a>

Open a browser and enter the device's IP address with the Restreamer installed. In the example: <http://device-ip:8080/ui>

## Raspberry Pi Camera

Please check out our guide: [How do I stream a RaspiCam?](https://docs.datarhei.com/restreamer/knowledge-base/user-guides/how-do-i-stream-a-raspicam)

## Important: The Environments

Environments are global settings for the Restreamer. We recommend considering some environments at the startup.

#### Description of the most important commands for the use of environments <a href="#description-of-the-most-important-commands-for-the-use-of-environments" id="description-of-the-most-important-commands-for-the-use-of-environments"></a>

**-d** Deletes the container. This means that the container is executed in the background. You can run it interactively in the foreground with *-it* instead of -d. To stop the restreamer in detached mode, type *docker stop restreamer*. In interactive mode, simply press Ctrl-C to stop the restreamer.

**--name restreamer** Set the container the name *restreamer*. This name can be used in other Docker commands to control the container. For example, to stop the Restreamer, type *docker stop restreamer*. While the Restreamer is running, you can log into the container with *docker exec -it restreamer /bin/bash*.

**--restart=always** If the Restreamer crashes or the device reboots, Docker restarts the Restreamer automatically.

**--publish 8080:8080** Binds the computer's port *8080* to the Restreamer's port *8080*. It allows you to connect to the Restreamer GUI over HTTP with your browser. If you want to use a different port, change it to *-p 31000:8080*, for example.

**--publish 8081:8181** Binds the computer's port *8181* to the Restreamer's port *8181*. It allows you to connect to the Restreamer GUI over HTTPS with your browser. If you want to use a different port, change it to *-p 31000:8181,* for example.

**--publish 1935:1935** Binds port 1935 of the computer to port 1935 of the Restreamer. It allows you to receive streams from the RTMP server or send streams to the RTMP server. If you want to use a different port, change it to -p 31000:1935, for example.

**--publish 1936:1936** Binds port 1936 of the computer to port 1936 of the Restreamer. It allows you to receive streams from the RTMPS server or send streams to the RTMPS server. If you want to use a different port, change it to -p 31000:1936, for example.

**--publish 6000/udp**  Binds port 6000/udp of the restreamer. It allows you to receive streams from the SRT server or send streams to the SRT server. If you want to use a different port, change it to -p 31000:6000/udp, for example.

**--volume ${HOME}/restreamer/config:/core/config** The Restreamer stores the current state in the */core/config* directory inside the container. This command maps the *${HOME}/restreamer/config* directory of your computer into the container. This can be used to preserve the state if the restreamer needs to be restarted. If you want to store the state in a different directory on your device, change it to, e.g. *-v /tmp/restreamer/config:/core/config*

**--volume ${HOME}/restreamer/data:/core/data** The Restreamer stores the internal file system persistently in this directory.

**datarhei/restreamer:latest** It is the Docker image of the latest datarhei Restreamer on Docker Hub. Docker checks if the image is available locally and downloads it if it is not or if a newer image is available.

### List with all available environment variables <a href="#list-with-all-available-environment-variables" id="list-with-all-available-environment-variables"></a>

{% content-ref url="../api/environment-variables" %}
[environment-variables](https://docs.datarhei.com/restreamer/api/environment-variables)
{% endcontent-ref %}

## Learn more <a href="#undefined" id="undefined"></a>

{% content-ref url="../knowledge-base/user-guides/how-do-i-install-docker" %}
[how-do-i-install-docker](https://docs.datarhei.com/restreamer/knowledge-base/user-guides/how-do-i-install-docker)
{% endcontent-ref %}

{% content-ref url="../knowledge-base/user-guides/how-does-port-forwarding-work-for-the-restreamer" %}
[how-does-port-forwarding-work-for-the-restreamer](https://docs.datarhei.com/restreamer/knowledge-base/user-guides/how-does-port-forwarding-work-for-the-restreamer)
{% endcontent-ref %}

{% content-ref url="../knowledge-base/user-guides/how-can-i-use-https-with-lets-encrypt" %}
[how-can-i-use-https-with-lets-encrypt](https://docs.datarhei.com/restreamer/knowledge-base/user-guides/how-can-i-use-https-with-lets-encrypt)
{% endcontent-ref %}

{% content-ref url="../knowledge-base/faq/what-are-environment-variables" %}
[what-are-environment-variables](https://docs.datarhei.com/restreamer/knowledge-base/faq/what-are-environment-variables)
{% endcontent-ref %}

{% content-ref url="../api/environment-variables" %}
[environment-variables](https://docs.datarhei.com/restreamer/api/environment-variables)
{% endcontent-ref %}

{% content-ref url="../knowledge-base" %}
[knowledge-base](https://docs.datarhei.com/restreamer/knowledge-base)
{% endcontent-ref %}

{% content-ref url="../api" %}
[api](https://docs.datarhei.com/restreamer/api)
{% endcontent-ref %}

{% content-ref url="../premium-support-1" %}
[premium-support-1](https://docs.datarhei.com/restreamer/premium-support-1)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.datarhei.com/restreamer/installing/raspberry-pi-arm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
