5.3 KiB
DaVinci Resolve in distrobox
Two images built from the same Dockerfile, pushed to a private registry,
used via distrobox:
davinci-amd— DaVinci Resolve + ROCm + Intelintel-compute-runtime, for AMD/Intel GPUsdavinci-nvidia— DaVinci Resolve only; the NVIDIA driver/toolchain is provided by the host
Registry: docker.slambin.fr. Files: Dockerfile, davinci-dependencies
(package list), davinci-run (in-image launcher).
This setup is a direct adaptation of
zelikos/davincibox — same base
image, same dependency list, same install flags — with one change: Resolve
is baked into the image at build time instead of being installed into the
box afterwards, to match this repo's "build once, push" convention. See
CLAUDE.md for what was changed and why.
Both amd and nvidia targets have been build-tested end to end (Docker
Desktop/WSL2, real DaVinci_Resolve_21.1_Linux.run) — dependency install,
the silent Resolve install, and the patchelf fix all completed cleanly, and
ldd on the installed binary shows no missing libraries. Not yet tested:
an actual distrobox create + GUI launch on real Linux/GPU hardware (see
CLAUDE.md for the full breakdown).
DaVinci Resolve binaries get baked into these images from your own Blackmagic Design download. Keep the registry private — never push these images publicly. Not affiliated with Blackmagic Design.
Prerequisites
- The DaVinci Resolve (or DaVinci Resolve Studio) Linux
.runinstaller from Blackmagic's site, unzipped, placed next to theDockerfile(the download is a.zipcontaining the.run—unzip DaVinci_Resolve_*_Linux.zipfirst). - Your host user should be in the
renderandvideogroups for GPU device access:sudo usermod -aG render,video "$USER"(log out/in after). - NVIDIA only: NVIDIA Container Toolkit installed on the host (see "NVIDIA gotcha" below).
Build & push
REGISTRY=docker.slambin.fr
VERSION=21.1
INSTALLER=DaVinci_Resolve_21.1_Linux.run
# Build for amd
podman build -f Dockerfile \
--build-arg "RESOLVE_INSTALLER=${INSTALLER}" \
--target "amd" \
-t "${REGISTRY}/davinci-amd:${VERSION}" \
-t "${REGISTRY}/davinci-amd:latest" .
# Build for nvidia
podman build -f Dockerfile \
--build-arg "RESOLVE_INSTALLER=${INSTALLER}" \
--target "nvidia" \
-t "${REGISTRY}/davinci-nvidia:${VERSION}" \
-t "${REGISTRY}/davinci-nvidia:latest" .
Install / run
# AMD / Intel
distrobox create \
--name davinci \
--image docker.slambin.fr/davinci-amd:latest \
--additional-flags "--hostname davinci-resolve"
# NVIDIA (see gotcha below re: --nvidia vs CDI)
distrobox create \
--name davinci \
--image docker.slambin.fr/davinci-nvidia:latest \
--nvidia \
--additional-flags "--hostname davinci-resolve"
Then:
distrobox enter davinci
davinci-run
NVIDIA gotcha (unverified)
Houdini's NVIDIA variant just needs distrobox --nvidia (host driver files
bind-mounted, enough for GL/Vulkan viewport rendering). DaVinci Resolve
needs full CUDA/OpenCL/NVENC, and upstream davincibox's README documents
using the NVIDIA Container Toolkit + CDI route instead:
distrobox create \
--name davinci \
--image docker.slambin.fr/davinci-nvidia:latest \
--additional-flags "--device nvidia.com/gpu=all"
which requires nvidia-container-toolkit set up on the host (already the
case on Universal Blue images; see NVIDIA's own install guide otherwise).
Whether plain --nvidia is actually enough has not been tested here — try
it first since it's simpler, fall back to the CDI form above if Resolve
reports something like "Unsupported GPU processing mode" on launch.
App menu entry (icon, no terminal)
Resolve ships its own .desktop files and icons under
/opt/resolve/share and /opt/resolve/graphics — no need to write one by
hand:
distrobox enter davinci
mkdir -p ~/.local/share/applications
cp /opt/resolve/share/*.desktop ~/.local/share/applications
rm ~/.local/share/applications/DaVinciResolveInstaller.desktop
sed -i 's/RESOLVE_INSTALL_LOCATION/\/opt\/resolve/' \
~/.local/share/applications/{blackmagicraw*,DaVinci*}.desktop
sed -i "s,Exec=,Exec=distrobox enter -n davinci -- /usr/local/bin/davinci-run ," \
~/.local/share/applications/{blackmagicraw*,DaVinci*}.desktop
distrobox-export --app "$HOME/.local/share/applications/DaVinciResolve.desktop"
(Adapted from davincibox's add-davinci-launcher script — see CLAUDE.md.)
Known gotchas (from upstream, not yet hit here ourselves)
- No audio: Resolve uses ALSA via the
pipewire-alsaplugin baked into the image. If your host doesn't run PipeWire, swap it inside the box:sudo dnf remove pipewire-alsa && sudo dnf install alsa-plugins-pulseaudio. - Codecs: the free version's codec support is limited — this is a Blackmagic licensing limitation, not something this image can fix.
- Studio + USB dongle: needs a udev rule on the host to let the container see the license dongle. See davincibox's README if you hit "Checking Licences..." crashes.