Mesos attributes in swarm

Hi, If i configure attributes in mesos, is there a way to use them as constraint filters in docker swarm?

i tried using docker run -e constraint:== and it returned a 504 gateway time-out

Thanks