寻求帮助:docker-compose持续清除daemon.json内容,导致故障

  • I have a physical machine installed with the OMV system, not using a virtual machine. The system versions are as follows: OMV 6.9.9-1 (Shaitan), Linux 6.1.0-0.deb11.13-amd64, docker-ce 5:24.0.7-1debian.11bullseye, docker-compose-plugin 2.21.0-1debian.11bullseye.

    Issue: My machine has an Nvidia GPU installed, and the drivers are installed correctly. Since my Docker setup requires GPU utilization, I modified /etc/docker/daemon.json as shown below to enable proper functionality:

    Code
    root@omv:~# cat /etc/docker/daemon.json 
    { 
      "data-root": "/var/lib/docker", 
      "runtimes": { "nvidia": { "path": "nvidia-container-runtime", 
      "runtimeArgs": [] 
      }
     }, 
      "default-runtime": "nvidia" 
    }

    However, whenever I modify or create a new yml file in the Compose file menu and save it, the system automatically clears the content I added in the daemon.json file. Even changing the file permissions to read-only doesn't work. This prevents Docker from starting and functioning when GPU utilization is required:

    Code
    root@omv:~# cat /etc/docker/daemon.json 
    { 
      "data-root": "/var/lib/docker" 
    }

    Hence, I'd like to know the reason behind this issue and what settings I need to apply to rectify it. Thank you!

  • chente

    Hat das Thema freigeschaltet.
    • Offizieller Beitrag

    Maybe this will help you

  • Under OMV | Services | Compose | Settings |Docker |Docker storage:


    What do you have for this setting?


    If it is NOT blank you are making a mistake.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • pcbcn

    Hat das Label gelöst hinzugefügt.
  • pcbcn

    Hat den Titel des Themas von „Seeking help: docker-compose consistently clearing daemon.json content, causing malfunction“ zu „寻求帮助:docker-compose持续清除daemon.json内容,导致故障“ geändert.
    • Offizieller Beitrag

    As the message on the docker storage field says, if you leave the dockerStorage field blank, it won't write /etc/docker/daemon.json - https://github.com/OpenMediaVa…se/40dockerconfig.sls#L37


    If you are leaving the field blank, post the output of: sudo omv-salt deploy run compose

    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


    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!

Jetzt mitmachen!

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