{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/24411","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/24411/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/24411/comments","events_url":"https://api.github.com/repos/docker/docker/issues/24411/events","html_url":"https://github.com/docker/docker/pull/24411","id":164286346,"number":24411,"title":"Add a new \"is-task\" ps filter","user":{"login":"vdemeester","id":6508,"avatar_url":"https://avatars.githubusercontent.com/u/6508?v=3","gravatar_id":"","url":"https://api.github.com/users/vdemeester","html_url":"https://github.com/vdemeester","followers_url":"https://api.github.com/users/vdemeester/followers","following_url":"https://api.github.com/users/vdemeester/following{/other_user}","gists_url":"https://api.github.com/users/vdemeester/gists{/gist_id}","starred_url":"https://api.github.com/users/vdemeester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdemeester/subscriptions","organizations_url":"https://api.github.com/users/vdemeester/orgs","repos_url":"https://api.github.com/users/vdemeester/repos","events_url":"https://api.github.com/users/vdemeester/events{/privacy}","received_events_url":"https://api.github.com/users/vdemeester/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/impact/api","name":"impact/api","color":"bfe5bf"},{"url":"https://api.github.com/repos/docker/docker/labels/impact/changelog","name":"impact/changelog","color":"bfe5bf"},{"url":"https://api.github.com/repos/docker/docker/labels/impact/cli","name":"impact/cli","color":"bfe5bf"},{"url":"https://api.github.com/repos/docker/docker/labels/status/4-merge","name":"status/4-merge","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/56","html_url":"https://github.com/docker/docker/milestones/1.13.0","labels_url":"https://api.github.com/repos/docker/docker/milestones/56/labels","id":1839404,"number":56,"title":"1.13.0","description":"","creator":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"open_issues":85,"closed_issues":308,"state":"open","created_at":"2016-06-20T22:51:25Z","updated_at":"2016-09-29T16:43:46Z","due_on":null,"closed_at":null},"comments":25,"created_at":"2016-07-07T11:19:31Z","updated_at":"2016-09-29T16:54:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/24411","html_url":"https://github.com/docker/docker/pull/24411","diff_url":"https://github.com/docker/docker/pull/24411.diff","patch_url":"https://github.com/docker/docker/pull/24411.patch"},"body":"This is a *simple* try at #24393 🐳. \r\n\r\nThis PR add a `is-task` filter to `docker ps` to make it easier to list containers that are managed (started with swarm mode) and those who are not 👼.\r\n\r\nThe accepted values of this new `is-task` filters are : `true`, `false`.\r\n\r\n```bash\r\n$ docker service create --replicas 3 --name toto busybox top\r\n$ docker run -itd busybox sh\r\n$ docker ps\r\nCONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES\r\n6b285d27cb6b        busybox             \"sh\"                14 minutes ago      Up 14 minutes                           angry_albattani\r\n0386186609e5        busybox:latest      \"top\"               14 minutes ago      Up 14 minutes                           toto.3.ecv0v800vjm5tczzqjjez4q9w\r\n4d5f0bb784d0        busybox:latest      \"top\"               14 minutes ago      Up 14 minutes                           toto.2.7s1mw00ssx5pl4i938kya3zsi\r\nd107a6069a97        busybox:latest      \"top\"               14 minutes ago      Up 14 minutes                           toto.1.46ppfac4ol5mlrh4q6cpsuy88\r\n$ docker ps --filter=is-task=true\r\nCONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES\r\n0386186609e5        busybox:latest      \"top\"               14 minutes ago      Up 14 minutes                           toto.3.ecv0v800vjm5tczzqjjez4q9w\r\n4d5f0bb784d0        busybox:latest      \"top\"               14 minutes ago      Up 14 minutes                           toto.2.7s1mw00ssx5pl4i938kya3zsi\r\nd107a6069a97        busybox:latest      \"top\"               14 minutes ago      Up 14 minutes                           toto.1.46ppfac4ol5mlrh4q6cpsuy88\r\n$ docker ps --filter=is-task=true\r\nCONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES\r\n6b285d27cb6b        busybox             \"sh\"                14 minutes ago      Up 14 minutes                           angry_albattani\r\n$ docker ps --filter=is-task=wrong\r\nError response from daemon: Invalid filter 'is-task=[wrong]'\r\n```\r\n\r\n<del>As @thaJeztah said, \"I'm completely open to suggestions w.r.t. naming; is \"managed\" the right term for this?\" 👼</del>\r\n\r\nIf this pass design-review, I'll need to:\r\n\r\n- [x] Add some tests\r\n- [X] Update completion\r\n- [x] Update documentation\r\n\r\nCloses #24393 \r\n\r\n/cc @thaJeztah @icecrime @stevvooe @aaronlehmann @dnephin \r\n\r\nSigned-off-by: Vincent Demeester <vincent@sbr.pm>"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/250526020","html_url":"https://github.com/docker/docker/pull/24411#issuecomment-250526020","issue_url":"https://api.github.com/repos/docker/docker/issues/24411","id":250526020,"user":{"login":"vdemeester","id":6508,"avatar_url":"https://avatars.githubusercontent.com/u/6508?v=3","gravatar_id":"","url":"https://api.github.com/users/vdemeester","html_url":"https://github.com/vdemeester","followers_url":"https://api.github.com/users/vdemeester/followers","following_url":"https://api.github.com/users/vdemeester/following{/other_user}","gists_url":"https://api.github.com/users/vdemeester/gists{/gist_id}","starred_url":"https://api.github.com/users/vdemeester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdemeester/subscriptions","organizations_url":"https://api.github.com/users/vdemeester/orgs","repos_url":"https://api.github.com/users/vdemeester/repos","events_url":"https://api.github.com/users/vdemeester/events{/privacy}","received_events_url":"https://api.github.com/users/vdemeester/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T16:54:10Z","updated_at":"2016-09-29T16:54:10Z","body":"WindowsRS1 failure unrelated, merging 👼"}}
{"actor":{"display_login":"vdemeester"}}