Docker compose plugin & nvidia runtime

  • Hi,

    After the last update of OMV, my containers lost their nvidia runtime access.

    I've noticed that daemon.json has been reseted to default

    But when I want to edit daemon.json with nvidia runtime specs...docker can't start

    Do you have any suggestion on how to fix that?

    Code
    {
    "runtimes": {
            "nvidia": {
                "path": "/usr/bin/nvidia-container-runtime",
                "runtimeArgs": []
            }
        },
    "default-runtime": "nvidia"
    "data-root": "/srv/dev-disk-by-uuid-e5954363-9d99-4c6f-9dd6-7c2ca9fc4d9e/Docker-Core"
    }
    • Offizieller Beitrag

    I've noticed that daemon.json has been reseted to default

    You need to leave the Docker storage field on the Settings tab of the compose plugin blank (the note says to do that).

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Well, I found the solution.

    nvidia runtime needs not to be specified in daemon.json anymore.

    now, it has to be registered here:


    etc/systemd/system/docker.service.d/override.conf


    with this settings:

    [Service]
    ExecStart=
    ExecStart=/usr/bin/dockerd --host=fd:// --add-runtime=nvidia=/usr/bin/nvidia-container-runtime


    then:


    systemctl daemon-reload

    systemctl restart docker

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!