Driven flow of droplets and bubbles