Recently, I have reinstalled my Ubuntu 20.04 and I am trying to run my docker-compose.yml using docker-compose up --build. And I am getting following error,
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.test: 'runtime'
And my docker-compose.yml is
version: '3'
services:
test:
image: nvidia/cuda:11.0-base
command: nvidia-smi
runtime: nvidia
In my previous Ubuntu 20.04 it was working fine, but after new docker installation I am getting this error. Additionally, I have also installed Nvidia Container Toolkit.
Furthermore, the command docker run --rm --runtime=nvidia nvidia/cuda:11.0-base nvidia-smi is also working as expected.
I appreciate any help to solve this problem.
Thank you.