diff --git a/docker/Dockerfile.base b/docker/Dockerfile.base index fc8a8c021..b2b2c9258 100644 --- a/docker/Dockerfile.base +++ b/docker/Dockerfile.base @@ -55,8 +55,9 @@ COPY --from=web /opt/frigate/build web/ ADD https://github.com/just-containers/s6-overlay/releases/download/v2.2.0.3/s6-overlay-${OVERLAY_ARCH}-installer /tmp/ RUN chmod +x /tmp/s6-overlay-${OVERLAY_ARCH}-installer && \ /tmp/s6-overlay-${OVERLAY_ARCH}-installer / && \ + groupadd -g 109 render && \ useradd -u 1000 -U -d /config -s /bin/false frigate && \ - usermod -G users frigate && \ + usermod -G users,render,video,plugdev frigate && \ mv /usr/bin/with-contenv /usr/bin/with-contenvb COPY docker/rootfs/ / diff --git a/docs/docs/installation.md b/docs/docs/installation.md index aea8d3279..4f9842f85 100644 --- a/docs/docs/installation.md +++ b/docs/docs/installation.md @@ -81,6 +81,14 @@ docker run -d \ blakeblackshear/frigate: ``` +**Note:** You will need to add a udev rule to fix the permissions of the /dev/bus/usb device permissions: + +``` +sudo echo -e "SUBSYSTEM=="usb",ATTRS{idVendor}=="1a6e",GROUP="plugdev",MODE="0770"\nSUBSYSTEM=="usb",ATTRS{idVendor}=="18d1",GROUP="plugdev",MODE="0770" \n" >> /etc/udev/rules.d/99-coral-frigate.rules + +udevadm control --reload +``` + ### Calculating shm-size The default shm-size of 64m is fine for setups with 3 or less 1080p cameras. If frigate is exiting with "Bus error" messages, it could be because you have too many high resolution cameras and you need to specify a higher shm size.