Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.16 KB

DOCKER.md

File metadata and controls

35 lines (25 loc) · 1.16 KB

Linux-Fake-Background-Webcam with Docker

Setup

copy docker_defaults.env to a file named .env in same directory e.g.

cp docker_defaults.env .env

Get list of your video devices. An app like v4l2-ctl should help:

v4l2-ctl --list-devices

Make any changes you need (use nvidia gpu, update images, change video volume mapping) to the newly created .env file.

Prerequisites

  • v4l2loopback
  • Docker
  • docker-compose
    • note: If using NVIDIA version, docker-compose 1.27.0+ needed to allow for runtime option in file format v3.
  • For use with an NVIDIA GPU: Nvidia Docker

Usage

  • Start it up: docker-compose up --build (or docker-compose up -d --build)
  • Stop and remove containers: docker-compose down
  • Note: Ctrl-C is currently stops the containers instead of changing images
    • You can instead rebuild with new settings: docker-compose up -d --build

For the NVIDIA version, add -f docker-compose-nvidia.yml to each command e.g.

  • docker-compose -f docker-compose-nvidia.yml up -d --build
  • docker-compose -f docker-compose-nvidia.yml down