MCPcopy
hub / github.com/docker/docker-py / exec_inspect

Method exec_inspect

docker/api/exec_api.py:80–97  ·  view source on GitHub ↗

Return low-level information about an exec command. Args: exec_id (str): ID of the exec instance Returns: (dict): Dictionary of values returned by the endpoint. Raises: :py:class:`docker.errors.APIError` If the s

(self, exec_id)

Source from the content-addressed store, hash-verified

78 return self._result(res, True)
79
80 def exec_inspect(self, exec_id):
81 """
82 Return low-level information about an exec command.
83
84 Args:
85 exec_id (str): ID of the exec instance
86
87 Returns:
88 (dict): Dictionary of values returned by the endpoint.
89
90 Raises:
91 :py:class:`docker.errors.APIError`
92 If the server returns an error.
93 """
94 if isinstance(exec_id, dict):
95 exec_id = exec_id.get('Id')
96 res = self._get(self._url("/exec/{0}/json", exec_id))
97 return self._result(res, True)
98
99 def exec_resize(self, exec_id, height=None, width=None):
100 """

Callers 5

executeMethod · 0.80
test_exec_inspectMethod · 0.80
test_exec_inspectMethod · 0.80
executeMethod · 0.80
exec_runMethod · 0.80

Calls 4

_getMethod · 0.80
_urlMethod · 0.80
_resultMethod · 0.80
getMethod · 0.45

Tested by 2

test_exec_inspectMethod · 0.64
test_exec_inspectMethod · 0.64