Docker Community Forums

Share and learn in the Docker community.

Is devices option available in docker stack deploy

I am trying to deploy a stack using a compose file that has devices option in it. But I am getting this error:

$ docker stack deploy --compose-file docker-compose.yml mystack
Ignoring unsupported options: devices

Can anybody confirm if docker stack deploy supports this option? My compose file version is 3.


Nope, not implemented for Swarm.

There are severall open issues and even promissing feature proposals like, but swarm is only capable to do a subset of things docker-compose or plain docker from the cli is able to do: