-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Support Container Device Interfaces for Create Container API #23560
Comments
What version of Podman are you using? podman info |
I'm using podman version 5.1.2 |
What happens with the remote API, it is supposed to work. What error are you seeing? |
I usually get the below error
Could you give me an example of how to specify devices in the remote API for creating a new container? That way, I can test if it works as expected for me. Perhaps it's a problem with how I'm using it? More details in the below discussion: |
i.e. what I'm essentially requesting for is the equivalent API call for:
|
@suptejas @rhatdan I'm running into the same problem too when I was doing preliminary research on how to include this via Podman Desktop. Being able to provide a one-click solution + use the API to enable GPU support. Going through the internal code, are we just attaching the GPU volumes via container create? |
Just curious but does --gpus=all work? Or is this being done on the client side as well. |
I think I have to have a local GPU to test this.
|
A friendly reminder that this issue had no activity for 30 days. |
you don't need a gpu to test, you can copy our test config for example from test/e2e/cdi/device.json The way to specify the cdi device is just like a normal device, i.e.
|
Feature request description
To use Nvidia's CDI and attach a GPU to a container, I can successfully run the below command
However, there does not seem to be a clear way to achieve the same through the Podman API. This is critical for companies who would like to orchestrate GPU-backed Podman instances.
Suggest potential solution
Support in the
devices
field in Podman to correctly parsenvidia.com/gpu=all
and other CDI specifications from other providers.Have you considered any alternatives?
A clear and concise description of any alternative solutions or features you've considered.
Additional context
I have shared more information in my GitHub discussion below:
The text was updated successfully, but these errors were encountered: