12 KiB
DaVinci Resolve image — design notes
Context for whoever (Claude) touches this Dockerfile next. Simon doesn't need
to read this — it's implementation reasoning, not usage docs (those are in
README.md).
Update 2026-09-09: the amd and nvidia targets both build successfully,
tested with a real DaVinci_Resolve_21.1_Linux.run on Docker Desktop/WSL2
(Windows host, no distrobox available there). See "Build test" below for
what was actually verified and how. What's still unverified: an actual
distrobox create + davinci-run GUI launch on real Linux/GPU hardware —
Windows can't test that part of the stack at all. Treat every "High" below
as "confirmed by an actual build", "Medium/Low" as still resting on prior
art alone.
Prior art checked before writing this
- zelikos/davincibox — Fedora
toolbox base, actively maintained, tested by its maintainer against real
AMD/Intel GPUs (no NVIDIA hardware). This is where the base image,
davinci-dependenciespackage list, the silent-install invocation, and the patchelf fix all come from, read as raw files from GitHub (not paraphrased from search snippets). - fat-tire/resolve — Rocky Linux
base, raw podman/docker (no distrobox), bakes Resolve into the image at
build time using the same
-i -a -yinstaller flags. Cross-checking this against davincibox'ssetup-davinci(which uses the same flags, at container-runtime instead) is what gave confidence that-i -a -yis a real, working non-interactive install path and not a guess — two independent projects landed on the same flags. - Universal Blue / openSUSE forum threads, Blackmagic forum thread: read for context, not copied from directly.
Why these choices
- Fedora toolbox base, not Ubuntu (unlike Houdini). Kept as-is from davincibox rather than switched to Ubuntu for consistency with Houdini, because it's the only base upstream has actually run real Resolve installs against, and it already ships the sudo/user bootstrap distrobox expects. The repo convention explicitly allows a different base per app.
- Resolve baked in at build time, not via a post-
distrobox createsetup script. davincibox installs Resolve after the box exists (setup-davinci), because it's meant to be a generic base image handed out to many users with different Resolve versions. This repo's own convention is the opposite: bake the actual software in and push a ready-to-run image (see Houdini). Confirmed this is actually possible (not just theoretically) by finding fat-tire/resolve, which does exactly this — bakes Resolve into a DockerfileRUNstep with no display attached, using the same installer flags. -i -a -yinstall flags. Not documented anywhere by Blackmagic directly (as far as this research found) — the confidence here comes from two independent community projects (davincibox, fat-tire/resolve) using the exact same flags to drive the same.run/AppImage installer non-interactively.QT_QPA_PLATFORM=minimal+SKIP_PACKAGE_CHECK=1layered on top come from davincibox specifically (zelikos/davincibox#35) — fat-tire/resolve doesn't set these, so it's possible they're only needed in some environments; kept them since we're building with no display at all, which is the case they're meant for.- patchelf fix, copied verbatim including the full library paths.
davincibox's
setup-davincibuilds--add-neededarguments from full paths (/usr/lib64/libglib-2.0.so.0, ...), not bare sonames. This looks unusual — patchelf's--add-neededconventionally takes a soname — but it's copied exactly as upstream has it working, rather than "corrected" based on how patchelf is normally used elsewhere. If this turns out not to work, that's the first thing to check against upstream's current version of the script (it may have changed since this was written). amdvariant installs both ROCm and Intel'sintel-compute-runtime. Matches davincibox's single-openclvariant, which is the same reasoning Houdini'sDockerfileuses for "amd variant also works for Intel" — no separate Intel target.mesa-libOpenCL(rusticl) is removed first because it's confirmed (zelikos/davincibox#173) to break ROCm.nvidiavariant is untouched (no OpenCL packages added). Matches Houdini's NVIDIA variant shape (nothing baked in, host driver only) but the actual runtime wiring differs — see the "NVIDIA gotcha" section inREADME.md. davincibox's README documents needing the NVIDIA Container Toolkit + CDI device injection (--device nvidia.com/gpu=all) rather than distrobox's simpler--nvidiaflag, for reasons not fully explained in their docs (something about their toolbox target needingNVIDIA_VISIBLE_DEVICES/NVIDIA_DRIVER_CAPABILITIESenv vars set at the container level, which--nvidia's driver-file bind-mount alone doesn't set up). Not resolved here; flagged as an open question for whoever tests this first.- App menu entry uses Resolve's own shipped
.desktop/icon files (/opt/resolve/share,/opt/resolve/graphics), unlike Houdini where one had to be hand-written from scratch. This is a real difference in what each app ships, not an inconsistency to "fix" — davincibox'sadd-davinci-launcherscript does the samesed-based adaptation, simplified in the README here since we don't need its toolbox/distrobox branching (this repo is distrobox-only) or itsremovemode. - Not ported from davincibox:
switcheroo-controlmulti-GPU handling (list-gpus/switcherooctl launchwrapping inrun-davinci) and runtime GPU auto-detection in the launcher (lshw-based, only needed because davincibox ships one image covering all GPU vendors — this repo already splits that at build time viaamd/nvidiatargets). Both are real upstream features, deliberately left out here rather than overlooked — add them back from davincibox'srun-davinciif dual-GPU laptop switching turns out to matter.
Build test (2026-09-09)
Ran on Docker Desktop (WSL2 backend, Windows host) with the real
DaVinci_Resolve_21.1_Linux.run (free version) placed next to the
Dockerfile — docker build --target amd then --target nvidia. No
distrobox involved (Windows), so this only covers the image build itself,
not an actual GUI launch.
- Dependency install (
basestage, both variants): passed clean. All 165 packages indavinci-dependenciesresolved and installed onfedora-toolbox:44with 0 errors — confirms the list still matches current Fedora 44 repos. - Silent install (
-i -a -y,QT_QPA_PLATFORM=minimal,SKIP_PACKAGE_CHECK=1) actually works at Docker build time, no display attached. Installer output ended withDaVinci Resolve installed to /opt/resolve/Done. Only benign warnings: missingxdg-icon-resource/xdg-mime/gtk-update-icon-cache(desktop-integration helpers not installed, not needed at build time) and a udev reload failure (no real udev/sysfs in a build container — expected). No AppImage magic-byte issue hit with this particular.run(that workaround, from fat-tire/resolve, is still not ported — add it back if a future version's.runfails--appimage-extract). - patchelf fix ran successfully.
find /opt/resolve/bin -executable -type f -exec patchelf ...reportedpatchelf: not an ELF executablefor 3 files (non-ELF things underbin/with the executable bit set, e.g. shell scripts) — harmless, and doesn't fail the build becausefind -exec cmd {} \;(semicolon form) does not propagatecmd's exit status tofind's own. Verified withpatchelf --print-neededthatresolveand its sibling binaries now carry all 4--add-neededentries. ldd /opt/resolve/bin/resolve(the actual entry point): zero missing libraries. This is the one that matters — confirms the dependency list is sufficient for the main binary as actually invoked.- False alarm, worth remembering: running
ldddirectly on individual.sofiles under/opt/resolve/libs/*.soin isolation shows dozens of "not found" (libc++.so.1, every bundled Qt5/OpenCV/Kaldi/OpenEXR lib, etc.). This is not a real problem —resolve's own RPATH is$ORIGIN/../libs/:$ORIGIN/../libs/Fusion:...(old-styleDT_RPATH, padded with a long run ofxcharacters so Blackmagic's own installer can rewrite the real path post-install without changing the binary's size — same trick as theRESOLVE_INSTALL_LOCATIONplaceholder in the.desktopfiles).DT_RPATHon the main executable applies transitively to the whole process's library resolution, not just its own directNEEDEDentries — so at actual runtime, throughresolve, all of these resolve fine. Testing a.sofile in isolation loses that context and produces a misleading "missing" list. Lesson for next time: to check for real missing libraries in an RPATH-based bundle like this one,lddonly the actual entry point binary, not the library files underneath it — scanning every.soindividually (the approach that worked for Houdini's Qt plugins, which don't use this RPATH trick) gives false positives here. - The only genuinely missing library found:
libcuda.so.1, needed bylibDecoderCUDA.so(CUDA RAW decode path) — expected and correct, that comes from the host NVIDIA driver, not from anything baked into the image. nvidiatarget builds instantly (shares the cachedbasestage) and carriesNVIDIA_VISIBLE_DEVICES=all/NVIDIA_DRIVER_CAPABILITIES=allas expected. Its actual GPU passthrough behavior (--nvidiavs CDI, see README) is still unverified — no NVIDIA hardware available to test from here either.- Not exercised at all: actual GUI launch, license-free playback, OpenCL compute on real AMD/Intel hardware, audio, the app-menu-entry steps, Studio+dongle path. All of that needs a real Linux host with distrobox.
What's still unverified after this build test
| Area | Confidence | Note |
|---|---|---|
| Base image + dependency list | High | Build-confirmed against Fedora 44 repos, 2026-09-09. |
-i -a -y + QT_QPA_PLATFORM=minimal + SKIP_PACKAGE_CHECK=1 at Docker build time, no display |
High | Build-confirmed: installer completed and reported success. |
| patchelf fix (paths, not sonames) | High | Build-confirmed: ran without failing the build, --print-needed shows the entries landed on resolve and siblings. |
Dependency sufficiency for the actual entry point (ldd /opt/resolve/bin/resolve) |
High | Build-confirmed: zero missing libraries. |
| AppImage magic-bytes workaround (fat-tire's Arch/Manjaro-specific issue) | Not ported | Not hit with the 21.1 .run tested here; add back from fat-tire/resolve's Dockerfile if a future version's --appimage-extract fails on it. |
amd variant (ROCm + Intel packages install) |
High | Build-confirmed: dnf install intel-compute-runtime rocm-opencl succeeded with no extra repos needed. Actual GPU compute correctness (OpenCL kernels running right) still unverified — needs real hardware. |
nvidia variant / --nvidia vs CDI |
Low | Still a real open question — see "NVIDIA gotcha" in README. Image builds fine either way; only the runtime GPU passthrough method is unverified. |
| App menu entry steps | Medium | Directly adapted from a working upstream script, simplified; confirmed the .desktop files exist at the documented paths (/opt/resolve/share/*.desktop), not run end-to-end. |
| Actual GUI launch / rendering / audio / licensing | Untested | Needs a real Linux host with distrobox + GPU — impossible to test from this Windows/Docker Desktop environment. |
Repo-wide conventions
See the top-level ../README.md for the multi-software repo convention
(one self-contained folder per app, shared registry setup notes) — that
file is meant for Simon to read; this one and ../houdini/CLAUDE.md are for
future-Claude context.