Move self.with_exposed_ports
to initializer
#260
Merged
self.with_exposed_ports
to initializer
#260