Docker Community Forums

Share and learn in the Docker community.

Docker swarm not using compose constrains


(Christiaandouma) #1

Hi,

I have a constrain in my docker compose file

placement:
constraints: [engine.labels.Architecture == x86_64]

Somehow the contrain isnt applied and swarm can’t find a suitable node.
What am i doing wrong?

output extract from a node:
Architecture: x86_64

Thanks in advance.

Christiaan