def is_port_open(self, port, timeout=<NUM_LIT:2>):
addresses = self.get_IPv4s()<EOL>if not addresses:<EOL><INDENT>return False<EOL><DEDENT>return check_port(port, host=addresses[<NUM_LIT:0>], timeout=timeout)<EOL>
check if given port is open and receiving connections on container ip_address

:param port: int, container port
:param timeout: int, how many seconds to wait for connection; defaults to 2
:return: True if the connection has been established inside timeout, False otherwise