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)
| 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 | """ |