MCPcopy Index your code
hub / github.com/docker/docker-py / remove

Method remove

docker/models/containers.py:352–367  ·  view source on GitHub ↗

Remove this container. Similar to the ``docker rm`` command. Args: v (bool): Remove the volumes associated with the container link (bool): Remove the specified link and not the underlying container force (bool): Force the removal

(self, **kwargs)

Source from the content-addressed store, hash-verified

350 return self.client.api.put_archive(self.id, path, data)
351
352 def remove(self, **kwargs):
353 """
354 Remove this container. Similar to the ``docker rm`` command.
355
356 Args:
357 v (bool): Remove the volumes associated with the container
358 link (bool): Remove the specified link and not the underlying
359 container
360 force (bool): Force the removal of a running container (uses
361 ``SIGKILL``)
362
363 Raises:
364 :py:class:`docker.errors.APIError`
365 If the server returns an error.
366 """
367 return self.client.api.remove_container(self.id, **kwargs)
368
369 def rename(self, name):
370 """

Callers 1

runMethod · 0.45

Calls 1

remove_containerMethod · 0.80

Tested by

no test coverage detected