[DO NOT MERGE] Fixes #7870: support for auto-complete in image search

Nods; I wasn't sure why we pinned docker-api at 1.8, so didn't change that.