Kaydet (Commit) 8b5f281e authored tarafından Ronald van Zantvoort's avatar Ronald van Zantvoort Kaydeden (comit) Joffrey F

build_prune

Signed-off-by: 's avatarRonald van Zantvoort <the.loeki@gmail.com>
üst d2d99828
......@@ -305,6 +305,22 @@ class BuildApiMixin(object):
else:
log.debug('No auth config found')
@utils.minimum_version('1.31')
def prune_build(self):
"""
Delete builder cache
Returns:
(dict): A dict containing
the amount of disk space reclaimed in bytes.
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error.
"""
url = self._url("/build/prune")
return self._result(self._post(url), True)
def process_dockerfile(dockerfile, path):
if not dockerfile:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment