Skip to content

Can't access to GPU using podman compose #28309

@joaopalma5

Description

@joaopalma5

Issue Description

Hello,

as we know the deploy resources (deploy.resources.reservations.devices) not are working with podman compose as described in the next issue:
Describe your issue

so this is the solution until now:
ollama:
image: ollama/ollama:latest
container_name: ollama
restart: unless-stopped
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
# ── GPU passthrough (NVIDIA) — comment out for CPU-only ──
devices:
- nvidia.com/gpu=all
healthcheck:
<<: *hc-defaults
test: ["CMD", "curl", "-f", "http://localhost:11434/api/tags"]

but now is giving this error when we are creating the container

  • Container ollama Creating 0.2s
    Error response from daemon: container create: stat nvidia.com/gpu=all: no such file or directory

best regards

Metadata

Metadata

Assignees

Labels

bugweekjirakind/bugCategorizes issue or PR as related to a bug.needs-infoNeed info from reportertriagedIssue has been triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions