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

Method restart

docker/models/containers.py:396–409  ·  view source on GitHub ↗

Restart this container. Similar to the ``docker restart`` command. Args: timeout (int): Number of seconds to try to stop for before killing the container. Once killed it will then be restarted. Default is 10 seconds. Raises:

(self, **kwargs)

Source from the content-addressed store, hash-verified

394 return self.client.api.resize(self.id, height, width)
395
396 def restart(self, **kwargs):
397 """
398 Restart this container. Similar to the ``docker restart`` command.
399
400 Args:
401 timeout (int): Number of seconds to try to stop for before killing
402 the container. Once killed it will then be restarted. Default
403 is 10 seconds.
404
405 Raises:
406 :py:class:`docker.errors.APIError`
407 If the server returns an error.
408 """
409 return self.client.api.restart(self.id, **kwargs)
410
411 def start(self, **kwargs):
412 """

Calls

no outgoing calls