How can I specify the container runtime to use in docker-compose version 3?
问题 I'm working on a container that requires the nvidia runtime. I can specify this runtime in a v2.3 docker-compose file like so: version: "2.3" services: my-service: image: "my-image" runtime: "nvidia" ... Running docker-compose up my-service works just fine. I get the nvidia runtime and everything works fine. I've tried this just by changing the "2.3" to "3" and I get the following error when I do docker-compose up my-service : ERROR: The Compose file './docker-compose.yml' is invalid because: