Docker Community Forums

Share and learn in the Docker community.

[compose] Confusion around deploy and GPU


I am trying to use docker-compose with GPU on my workstation, and I found a seemly contradicting documentation:

  1. Here in compose v3 doc, it says: (link)

Added in version 3 file format.
Specify configuration related to the deployment and running of services. This only takes effect when deploying to a swarm with docker stack deploy and is ignored by docker-compose up and docker-compose run .

  1. However in the GPU doc, it uses deploy and docker-compose up together.

I guess not all configuration under deploy is ignored?