{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/26903","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/26903/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/26903/comments","events_url":"https://api.github.com/repos/docker/docker/issues/26903/events","html_url":"https://github.com/docker/docker/issues/26903","id":179133843,"number":26903,"title":"create only one task on every manager, is using global and constraint a 'undefined behavior' ?","user":{"login":"Revolution1","id":3241438,"avatar_url":"https://avatars.githubusercontent.com/u/3241438?v=3","gravatar_id":"","url":"https://api.github.com/users/Revolution1","html_url":"https://github.com/Revolution1","followers_url":"https://api.github.com/users/Revolution1/followers","following_url":"https://api.github.com/users/Revolution1/following{/other_user}","gists_url":"https://api.github.com/users/Revolution1/gists{/gist_id}","starred_url":"https://api.github.com/users/Revolution1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Revolution1/subscriptions","organizations_url":"https://api.github.com/users/Revolution1/orgs","repos_url":"https://api.github.com/users/Revolution1/repos","events_url":"https://api.github.com/users/Revolution1/events{/privacy}","received_events_url":"https://api.github.com/users/Revolution1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/area/swarm","name":"area/swarm","color":"fbca04"},{"url":"https://api.github.com/repos/docker/docker/labels/kind/enhancement","name":"kind/enhancement","color":"E8CAAF"}],"state":"closed","locked":false,"assignee":{"login":"aaronlehmann","id":10601430,"avatar_url":"https://avatars.githubusercontent.com/u/10601430?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronlehmann","html_url":"https://github.com/aaronlehmann","followers_url":"https://api.github.com/users/aaronlehmann/followers","following_url":"https://api.github.com/users/aaronlehmann/following{/other_user}","gists_url":"https://api.github.com/users/aaronlehmann/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronlehmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronlehmann/subscriptions","organizations_url":"https://api.github.com/users/aaronlehmann/orgs","repos_url":"https://api.github.com/users/aaronlehmann/repos","events_url":"https://api.github.com/users/aaronlehmann/events{/privacy}","received_events_url":"https://api.github.com/users/aaronlehmann/received_events","type":"User","site_admin":false},"assignees":[{"login":"aaronlehmann","id":10601430,"avatar_url":"https://avatars.githubusercontent.com/u/10601430?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronlehmann","html_url":"https://github.com/aaronlehmann","followers_url":"https://api.github.com/users/aaronlehmann/followers","following_url":"https://api.github.com/users/aaronlehmann/following{/other_user}","gists_url":"https://api.github.com/users/aaronlehmann/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronlehmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronlehmann/subscriptions","organizations_url":"https://api.github.com/users/aaronlehmann/orgs","repos_url":"https://api.github.com/users/aaronlehmann/repos","events_url":"https://api.github.com/users/aaronlehmann/events{/privacy}","received_events_url":"https://api.github.com/users/aaronlehmann/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-09-26T03:45:42Z","updated_at":"2016-10-13T22:09:34Z","closed_at":"2016-10-13T22:09:34Z","body":"VERSION: Docker 1.12.1\r\n\r\nI need to run Interlock on my cluster. Since it needs the \"/service\" api, it can only run on the manager node. I want only one task on every manager.\r\n\r\nI managed to achieve this by using both `--mode=global` and `--constraint node.role=manager`\r\n\r\nWhen I use `docker service ps`, docker seems still created task on every node, only the manager's is in running state. \r\n\r\nThat is quite confusing, am I using a \"undefined behavior\" ? \r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/253653430","html_url":"https://github.com/docker/docker/issues/26903#issuecomment-253653430","issue_url":"https://api.github.com/repos/docker/docker/issues/26903","id":253653430,"user":{"login":"aluzzardi","id":179503,"avatar_url":"https://avatars.githubusercontent.com/u/179503?v=3","gravatar_id":"","url":"https://api.github.com/users/aluzzardi","html_url":"https://github.com/aluzzardi","followers_url":"https://api.github.com/users/aluzzardi/followers","following_url":"https://api.github.com/users/aluzzardi/following{/other_user}","gists_url":"https://api.github.com/users/aluzzardi/gists{/gist_id}","starred_url":"https://api.github.com/users/aluzzardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aluzzardi/subscriptions","organizations_url":"https://api.github.com/users/aluzzardi/orgs","repos_url":"https://api.github.com/users/aluzzardi/repos","events_url":"https://api.github.com/users/aluzzardi/events{/privacy}","received_events_url":"https://api.github.com/users/aluzzardi/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T22:09:34Z","updated_at":"2016-10-13T22:09:34Z","body":"@Revolution1 This was implemented in SwarmKit and will be available in the next (1.13) Docker release"}}
{"actor":{"display_login":"aluzzardi"}}