Try removing --runtime=nvidia from your command. the nvidia container runtime is an archived project. --gpus all should be enough. You can find examples on NVIDIAs website too
It shows the runtime option as an alternative, but the recommended is just the gpus option.
And some examples for Docker Compose if you need it