MCPcopy Create free account
hub / github.com/docker/docker-py / df

Method df

docker/api/daemon.py:9–22  ·  view source on GitHub ↗

Get data usage information. Returns: (dict): A dictionary representing different resource categories and their respective data usage. Raises: :py:class:`docker.errors.APIError` If the server returns an error.

(self)

Source from the content-addressed store, hash-verified

7class DaemonApiMixin:
8 @utils.minimum_version('1.25')
9 def df(self):
10 """
11 Get data usage information.
12
13 Returns:
14 (dict): A dictionary representing different resource categories
15 and their respective data usage.
16
17 Raises:
18 :py:class:`docker.errors.APIError`
19 If the server returns an error.
20 """
21 url = self._url('/system/df')
22 return self._result(self._get(url), True)
23
24 def events(self, since=None, until=None, filters=None, decode=None):
25 """

Callers

nothing calls this directly

Calls 3

_urlMethod · 0.80
_resultMethod · 0.80
_getMethod · 0.80

Tested by

no test coverage detected