If you do not have a docker-compose environment, install it and start the docker service using apt.
To install the NMS (Non-Maximum Suppression) extension, you must ensure the nvidia runtime is enabled during the build process. This is done by configuring /etc/docker/daemon.json to set nvidia as the default-runtime.
# Install docker-compose and start service
sudo apt install docker-compose
sudo service docker start
Configure /etc/docker/daemon.json
{
"runtimes": {
"nvidia": {
"path": "nvidia-container-runtime",
"runtimeArgs": []
}
},
"default-runtime": "nvidia"
}
Restart docker to apply changes
sudo systemctl restart docker