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

Method _check_is_tty

docker/api/client.py:478–480  ·  view source on GitHub ↗
(self, container)

Source from the content-addressed store, hash-verified

476
477 @check_resource('container')
478 def _check_is_tty(self, container):
479 cont = self.inspect_container(container)
480 return cont['Config']['Tty']
481
482 def _get_result(self, container, stream, res):
483 return self._get_result_tty(stream, res, self._check_is_tty(container))

Callers 2

_get_resultMethod · 0.95
attachMethod · 0.80

Calls 1

inspect_containerMethod · 0.80

Tested by

no test coverage detected