Implementing searching and pulling docker images

Why do you trigger ```"failure"``` event here?