add expose_ports method to Container