-
Notifications
You must be signed in to change notification settings - Fork 300
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
hostRequirements: gpu: missing driver option #10124
Comments
Having the same issue, and it's a pain for my team, as we have multiple people working with Macbooks... Really hoping for this to be fixed. |
For docker compose, I have a hacky fix: I simply use this script I created and extend my docker-compose.yml's devcontainer service with the file created: #!/bin/bash
target_file="environments/devcontainer/gpu_optional.docker-compose.yml"
snippets_path="environments/devcontainer/build_utils/snippets"
if ! nvidia-smi >/dev/null; then
cp "${snippets_path}/without_gpu.docker-compose.yml" "${target_file}"
else
cp "${snippets_path}/with_gpu.docker-compose.yml" "${target_file}"
fi where services:
devcontainer:
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu] and services:
devcontainer: Hope this helps! |
@lpasselin This case should work. Please append the Dev Containers log from when you rebuild the container. ( |
@chrmarti in my case, what I found what that although the runtime is nvidia-container-runtime, the docker compose config used has a services:
devcontainer-service:
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
count: all The |
Could you share the output from |
Same as this issue which is for windows: #9385
docker info -f '{{.Runtimes.nvidia}}' --> returns nvidia-container-runtime
Temporary fix is to add this to our docker-compose.yml but it breaks for users without gpu
When reverting to using a dockerfile instead of docker-compose,
"runArgs": [ "--gpus", "all" ]
does workThe text was updated successfully, but these errors were encountered: