Add a new "is-task" ps filter

This makes it easier to list containers that are part of a task
(swarm mode) and those who are not.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 5280ba83e55b94b9d4973a15381e18eb10920233
Component: engine
This commit is contained in:
Vincent Demeester
2016-09-28 12:45:30 +02:00
parent f6b8936533
commit 48a609d72c
9 changed files with 72 additions and 2 deletions

View File

@ -136,6 +136,7 @@ func assertContainerList(out string, expected []string) bool {
return true
}
// FIXME(vdemeester) Move this into a unit test in daemon package
func (s *DockerSuite) TestPsListContainersInvalidFilterName(c *check.C) {
out, _, err := dockerCmdWithError("ps", "-f", "invalidFilter=test")
c.Assert(err, checker.NotNil)