Add docker.prune - pruning for Docker subsystems #46176
Hi, I'm afraid I'm going to have to pass on that one due to time constraints... I will however update the function once I get the same function PR'd in docker-py; that should get rid of the hidden function calls.
After that I'm not even sure what there is to test in this case. That is, I'm assuming Docker does it's testing on the API endpoints,
The kwargs argument isn't supported and attempting to pass it to the API will result in API errors. This fixes that bug and makes improvements to the docstring. It also changes the behavior of the `system` argument so that it doesn't need to be manually disabled to prune only containers/images/etc. Finally, it moves the prune function higher up to fit with the organizational structure of the module.
AFAIK just the one I already opened a PR for (https://github.com/docker/docker-py/pull/1925/commits), so that would be purely a backwards compat feature