microsoft / microsoft/vscode-remote-release

hostRequirements: gpu: missing driver option

Open
#10,124 5 comments 0 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since Jul 31, 2024.

bug containers
Dominant language
Dockerfile
Stars
4.2k
Forks
469
Avg merge
1d 1h
Merged PRs (30d)
1

Description

  • VSCode Version: 1.91.1
  • Local OS Version: ubuntu
  • Remote Extension/Connection Type: Containers

Same as this issue which is for windows: https://github.com/microsoft/vscode-remote-release/issues/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

    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]

When reverting to using a dockerfile instead of docker-compose, "runArgs": [ "--gpus", "all" ] does work

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.