diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 361827c..9ca74df 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,14 +4,16 @@ "name": "Ubuntu", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "image": "mcr.microsoft.com/devcontainers/base:noble", - "features": { - "ghcr.io/devcontainers/features/docker-in-docker:2": {}, - "ghcr.io/devcontainers/features/nvidia-cuda:2": {}, - "ghcr.io/devcontainers/features/python:1": {} - } // Features to add to the dev container. More info: https://containers.dev/features. - // "features": {}, + "features": { + "ghcr.io/devcontainers/features/nvidia-cuda:2": {}, + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}, + "ghcr.io/devcontainers/features/python:1" + }, + + // Needed for cuda in the container + "runArgs": ["--gpus=all"] // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [],