dandere2x icon indicating copy to clipboard operation
dandere2x copied to clipboard

Docker image does not seem to work anymore

Open beertje44 opened this issue 1 year ago • 2 comments

Problem seems to be: cuda and vulkan no longer seem to work, at least not on my system: AlmaLinux 9.2 x86_64 with podman.

Took me quite some time to get everything right but the good news it wasn't that hard to get everything up2date, there was only 1 python package that needed to be pinnen to a newer version.

The real problem was getting my nVidia card to work inside the container. I ended up using the nvidia/cuda repo which in turn uses Ubuntu 22.04 LTS as its base repo. The way nvidia integrates vulcan makes the image kind of heavy (extra 2.5GB). But at least it now works just fine. Perhaps someone can improve on this.

You can build with:

podman build --no-cache -f Dockerfile --build-arg VULKAN_SDK_VERSION=curl https://vulkan.lunarg.com/sdk/latest/linux.txt -t <YOUR TAG HERE

and run with:

podman run -it --rm --gpus all -v /dev:/dev -e NVIDIA_DISABLE_REQUIRE=1 -e NVIDIA_DRIVER_CAPABILITIES=all --security-opt=label=disable --hooks-dir=/usr/share/containers/oci/hooks.d/ -v $PWD:/host <YOUR TAG HERE> -p multiprocess -ws ./workspace/ -i /host/input.mp4 -o /host/output.mp4

I'm pretty sure docker is quite similar, but don't have that on my system :)

beertje44 avatar Aug 13 '23 19:08 beertje44