public function imageSearch($term)
    {
        return $this->browser->get(
            $this->uri->expand(
                '/images/search{?term}',
                array(
                    'term' => $term
                )
            )
        )->then(array($this->parser, 'expectJson'));
    }
public function imageSearch($term)
    {
        return $this->browser->get(
            $this->uri->expand(
                '/images/search{?term}',
                array(
                    'term' => $term
                )
            )
        )->then(array($this->parser, 'expectJson'));
    }
public function imageSearch ( $ term ) { return $ this -> browser -> get ( $ this -> uri -> expand ( '/images/search{?term}' , array ( 'term' => $ term ) ) ) -> then ( array ( $ this -> parser , 'expectJson' ) ) ; }
Search for an image on Docker Hub.

@param string $term term to search
@return PromiseInterface Promise<array> list of image search result objects
@link https://docs.docker.com/reference/api/docker_remote_api_v1.15/#search-images
Search for an image on Docker Hub .