public function stop($remove = false, $timeout = 0)
    {
        if (!isset($this->actions['stop'])) {
            throw new InvalidActionException(sprintf('Impossible to stop the container "%s" (current state "%s").', $this->id, $this->state));
        }

        $this->client->post($this->actions['stop'], array(
            'remove' => $remove,
            'timeout' => $timeout
        ));
    }
public function stop($remove = false, $timeout = 0)
    {
        if (!isset($this->actions['stop'])) {
            throw new InvalidActionException(sprintf('Impossible to stop the container "%s" (current state "%s").', $this->id, $this->state));
        }

        $this->client->post($this->actions['stop'], array(
            'remove' => $remove,
            'timeout' => $timeout
        ));
    }
public function stop ( $ remove = false , $ timeout = 0 ) { if ( ! isset ( $ this -> actions [ 'stop' ] ) ) { throw new InvalidActionException ( sprintf ( 'Impossible to stop the container "%s" (current state "%s").' , $ this -> id , $ this -> state ) ) ; } $ this -> client -> post ( $ this -> actions [ 'stop' ] , array ( 'remove' => $ remove , 'timeout' => $ timeout ) ) ; }
Stops a container.

@param bool $remove  Determines if the container must be removed after the action.
@param int  $timeout Determines the time to wait before the shutdown.

@throws InvalidActionException if the container can not be stopped.
Stops a container .