'List volumes currently registered by the docker daemon. Similar to the
``docker volume ls`` command.
Args:
filters (dict): Server-side list filtering options.
Returns:
(dict): Dictionary with list of volume objects as value of the
``Volumes`` key.
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error.
Example:
>>> cli.volumes()
{u\'Volumes\': [{u\'Driver\': u\'local\',
u\'Mountpoint\': u\'/var/lib/docker/volumes/foobar/_data\',
u\'Name\': u\'foobar\'},
{u\'Driver\': u\'local\',
u\'Mountpoint\': u\'/var/lib/docker/volumes/baz/_data\',
u\'Name\': u\'baz\'}]}'

@utils.minimum_version('1.21')
def volumes(self, filters=None):

    params = {'filters': (utils.convert_filters(filters) if filters else None)}
    url = self._url('/volumes')
    return self._result(self._get(url, params=params), True)
