Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

docker-compose support #1073

@DarioTurchi

Description

@DarioTurchi

1. Issue or feature description

not able to run containers with GPU acceleration from docker compose

With nvidia-docker2 I was able to run GPU accelerated containers by defining the nvidia runtime within the file /etc/docker/daemon.json:

{
    "runtimes": {
        "nvidia": {
            "path": "/usr/bin/nvidia-container-runtime",
            "runtimeArgs": []
        }
    }
}

and then use the runtime key within the docker compose file (or set the nvidia runtime as the default one)
With the new version of Nvidia-docker, nvidia container toolkit this doesn't work anymore, since a dedicated runtime should not been run anymore, instead the flag --gpus needs to be provided (or at least this is my understanding).
However, the wiki still suggests the 'runtime' solution, is that right ? Furthermore, the current installation doesn't provide the `/usr/bin/nvidia-container-runtime' file anymore

How does the current version of nvidia-docker should be integrated with docker-compose ?
Sorry if I didn't properly report this as an issue: it is indeed more a lack of documentation and I didn't know where to report it

docker-compose version 1.24.1
Docker version 19.03.2, build 6a30dfc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions