Check all tasks when polling
Check all tasks when polling

Previously, only the first task returned by docker was checked to
find the running task. This commit checks all tasks instead so
that the SwarmSpawner can tolerate tasks which failed to start.

cassinyio/SwarmSpawner