public function getHostPorts()
    {
        $ports = [];
        $service = $this->getService();

        foreach ($service->getPorts() as $port) {
            list($host,) = explode(':', $port);
            $ports[] = $host;
        }

        return $ports;
    }
public function getHostPorts()
    {
        $ports = [];
        $service = $this->getService();

        foreach ($service->getPorts() as $port) {
            list($host,) = explode(':', $port);
            $ports[] = $host;
        }

        return $ports;
    }
public function getHostPorts ( ) { $ ports = [ ] ; $ service = $ this -> getService ( ) ; foreach ( $ service -> getPorts ( ) as $ port ) { list ( $ host , ) = explode ( ':' , $ port ) ; $ ports [ ] = $ host ; } return $ ports ; }
Get Docker host ports.

@return array
An array of host ports.
Get Docker host ports .