podman/pkg/api/handlers/compat
Giuseppe Scrivano bc8124fd62 pkg/api: honor cdi devices from the hostconfig
pass down the devices specifies in the resources block so that CDI
devices in the compose file are honored.

Tested manually with the following compose file:

services:
  testgpupodman_count:
    image: ubuntu:latest
    command: ["nvidia-smi"]
    profiles: [gpu]
    deploy:
      resources:
        reservations:
          devices:
          - driver: nvidia
            count: 1
            capabilities: [gpu]
  testgpupodman_deviceid:
      image: docker.io/ubuntu:latest
      command: ["nvidia-smi"]
      deploy:
        resources:
          reservations:
            devices:
            - driver: cdi
              device_ids: ['nvidia.com/gpu=all']
              capabilities: [gpu]

Closes: https://github.com/containers/podman/issues/19338

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2025-02-04 15:13:00 -05:00
..
auth.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
changes.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers.go Configure HealthCheck with `podman update` 2024-11-19 19:44:14 +01:00
containers_archive.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_attach.go fix races in the HTTP attach API 2024-08-27 15:00:08 +02:00
containers_create.go pkg/api: honor cdi devices from the hostconfig 2025-02-04 15:13:00 -05:00
containers_export.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_logs.go API: container logs flush status code 2024-11-01 18:54:13 +01:00
containers_pause.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_prune.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_restart.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_start.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_stats_freebsd.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_stats_linux.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_stop.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_top.go Match output of Compat Top API to Docker 2024-09-17 11:34:22 -04:00
containers_unpause.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
events.go rework event code to improve API errors 2024-11-01 18:54:13 +01:00
exec.go podman exec: correctly support detaching 2025-02-03 01:50:55 +00:00
images.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_build.go Add nohosts option to /build and /libpod/build 2024-11-24 22:00:31 -05:00
images_history.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_prune.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_push.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_remove.go Add podman manifest rm --ignore 2025-01-22 11:43:47 -05:00
images_save.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_search.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_tag.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
info.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
networks.go update golangci/golangci-lint to v1.63.4 2025-01-07 15:48:53 +01:00
ping.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
resize.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
secrets.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
system.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
types.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
unsupported.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
version.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
volumes.go volume ls: fix race that caused it to fail 2024-11-06 12:28:52 +01:00