Run Packager in Docker
Below are some examples of how to run the Packager in a Docker container, using different configurations and setups.
The examples assume you have a config.toml file in the current working directory.
Choose a pipeline from the example configurations. For a persistent service, follow Production deployment.
Select an image
Set PACKAGER_IMAGE to the image and release tag that Vindral supplies with your
Bridge access (contact us if you do not have them yet):
export PACKAGER_IMAGE='YOUR_BRIDGE_IMAGE:YOUR_RELEASE_TAG'
Replace the placeholder before running these commands. Browser sources need a CEF-enabled image. See feature requirements and validation. For a complete local pipeline, start with the quickstart.
Example Docker command
docker run \
-v "$(pwd)/config.toml:/etc/packager/config.toml" \
--network host \
--log-driver=journald \
--restart always \
--name packager-example \
-d "${PACKAGER_IMAGE:?Set PACKAGER_IMAGE to your release image}" start
Using Blackmagic DeckLink SDI
Install Blackmagic Desktop Video on the host, then pass the DeckLink devices and library into the container:
docker run \
--device /dev/blackmagic:/dev/blackmagic \
-v /usr/lib/libDeckLinkAPI.so:/usr/lib/libDeckLinkAPI.so:ro \
-v /usr/lib/blackmagic/DesktopVideo:/usr/lib/blackmagic/DesktopVideo:ro \
-v "$(pwd)/config.toml:/etc/packager/config.toml" \
--network host \
--log-driver=journald \
--restart always \
--name packager-decklink \
-d "${PACKAGER_IMAGE:?Set PACKAGER_IMAGE to your release image}" start
Use the decklink_sdk source or sink type and select the card by name:
[[sources]]
id = "sdi"
source_type = "decklink_sdk"
protocol_options = { device = "DeckLink Duo (1)" }
See DeckLink SDI capture and playout for device selection, format detection, playout requirements and metrics.
Using Nvidia GPUs
Automatic device selection can use an available NVIDIA device for supported codecs. The image must include the relevant encoder/decoder support and the container must see the driver and GPU. Use device = "nvidia" to select this path explicitly; see Performance.
docker run \
--gpus all \
-e NVIDIA_VISIBLE_DEVICES=all \
-e NVIDIA_DRIVER_CAPABILITIES=all \
-v "$(pwd)/config.toml:/etc/packager/config.toml" \
--network host \
--log-driver=journald \
--restart always \
--name packager-nvidia \
-d "${PACKAGER_IMAGE:?Set PACKAGER_IMAGE to your release image}" start
Using Intel QSV
Use device = "qsv" explicitly to select Intel acceleration. The Intel QSV guide includes a complete v3
configuration, Linux driver and container device setup, encoder selection, and
verification steps. It also explains the CPU/filter boundaries and hardware
requirements.
Using NETINT ASICs
A NETINT-enabled image and compatible host driver/device access are required. Expose the devices required by your installation to the container, then use automatic selection or select netint_quadra / netint_t4xx explicitly. The command below shows the common container settings; add your deployment's NETINT device mappings.
The Quadra generation of NETINT ASICs supports scaling as well and will automatically be used when available. If older generations of NETINT ASICs are used, scaling will be done on the CPU instead.
For a complete configuration, see NETINT ladder.
docker run \
-v "$(pwd)/config.toml:/etc/packager/config.toml" \
--network host \
--log-driver=journald \
--restart always \
--name packager-example \
-d "${PACKAGER_IMAGE:?Set PACKAGER_IMAGE to your release image}" start
NDI
The NDI runtime is not included in the images. Mount it from the host, use host networking for discovery, and bind-mount the host's Avahi and D-Bus sockets:
docker run \
--network=host \
--security-opt apparmor=unconfined \
-v /path/to/packager-config.toml:/etc/packager/config.toml \
-v /opt/ndi/lib:/opt/ndi/lib:ro \
-e NDI_RUNTIME_DIR_V3=/opt/ndi/lib \
-v /var/run/dbus:/var/run/dbus \
-v /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket \
"${PACKAGER_IMAGE:?Set PACKAGER_IMAGE to your release image}" start
Replace /opt/ndi/lib with the directory holding libndi.so. See
NDI input and output for receiving and publishing NDI, discovery and
network requirements.