Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image does not seem to work anymore #298

Open
beertje44 opened this issue Aug 13, 2023 · 2 comments
Open

Docker image does not seem to work anymore #298

beertje44 opened this issue Aug 13, 2023 · 2 comments

Comments

@beertje44
Copy link

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 :)

@cone-forest
Copy link

Hi there! What do you mean by tag?

@beertje44
Copy link
Author

Tag is the identifier for podman for the user you run it with, so it basicly can be any string. As long as you build and run it with the same tag string, I'm sure podman and docker are the same on this part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants