def wait(self, timeout=None):
return self.d.wait(self.get_id(), timeout)<EOL>
Block until the container stops, then return its exit code. Similar to
the ``docker wait`` command.

:param timeout: int, Request timeout
:return: int, exit code