public function containersExec($container, $execute_command) {
    $this->validateConfig();
    $this->title('Executing in container: ' . $container, FALSE);
    $this->taskDockerComposeExecute()
      ->file($this->dockerComposeFile)
      ->projectName($this->config->get('name'))
      ->disablePseudoTty()
      ->setContainer(' ' . $container)
      ->exec($execute_command)
      ->run();
  }
public function containersExec($container, $execute_command) {
    $this->validateConfig();
    $this->title('Executing in container: ' . $container, FALSE);
    $this->taskDockerComposeExecute()
      ->file($this->dockerComposeFile)
      ->projectName($this->config->get('name'))
      ->disablePseudoTty()
      ->setContainer(' ' . $container)
      ->exec($execute_command)
      ->run();
  }
public function containersExec ( $ container , $ execute_command ) { $ this -> validateConfig ( ) ; $ this -> title ( 'Executing in container: ' . $ container , FALSE ) ; $ this -> taskDockerComposeExecute ( ) -> file ( $ this -> dockerComposeFile ) -> projectName ( $ this -> config -> get ( 'name' ) ) -> disablePseudoTty ( ) -> setContainer ( ' ' . $ container ) -> exec ( $ execute_command ) -> run ( ) ; }
Execute a command on a given container.

@param string $container
Container name.
@param string $execute_command
Command to execute.
Execute a command on a given container .