'Retrieve volume info by name.
Args:
name (str): volume name
Returns:
(dict): Volume information dictionary
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error.
Example:
>>> cli.inspect_volume(\'foobar\')
{u\'Driver\': u\'local\',
u\'Mountpoint\': u\'/var/lib/docker/volumes/foobar/_data\',
u\'Name\': u\'foobar\'}'

@utils.minimum_version('1.21')
def inspect_volume(self, name):

    url = self._url('/volumes/{0}', name)
    return self._result(self._get(url), True)
