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:
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:
Hence, I'd like to know the reason behind this issue and what settings I need to apply to rectify it. Thank you!