Frigate NVR
Frigate NVR
Docker
Download and save the Docker repository signing key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
Add the Docker repository in /etc/apt/sources.list.d/docker.list:
deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu jammy stable
Allow unattended updates from this repository by add to /etc/apt/apt.conf.d/50unattended-upgrades:
Unattended-Upgrade::Allowed-Origins { // Append to end of existing entries "Docker:${distro_codename}"; };
Update the repositories and install the package:
apt update apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin
Check all is working with:
docker version
Stop the services:
systemctl stop docker.service systemctl stop docker.socket systemctl stop containerd.service
Move the Docker root directory:
mv /var/lib/docker /srv
Edit the systemd service for Docker:
systemctl edit docker.service
Add the following to the top of the override file:
[Service] ExecStart= ExecStart=/usr/bin/dockerd -–data-root=/srv/docker --storage-driver=zfs -H fd:// --containerd=/run/containerd/containerd.sock
Restart Docker:
systemctl daemon-reload systemctl start docker.service
Check it still works with:
docker run hello-world
GPU Hardware Acceleration
Download and save the NVIDIA repository signing key:
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /etc/apt/keyrings/nvidia-container.gpg
Add the Docker repository in /etc/apt/sources.list.d/nvidia-container.list:
deb [signed-by=/etc/apt/keyrings/nvidia-container.gpg] https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/$(ARCH) /
Allow unattended updates from this repository by add to /etc/apt/apt.conf.d/50unattended-upgrades:
Unattended-Upgrade::Origins-Pattern { "site=nvidia.github.io"; };
Update the repositories and install the package:
apt update apt install nvidia-docker2
Restart Docker:
systemctl start docker.service