public function copyFileToService($from, $destination, $service)
    {
        if (!file_exists($from)) {
            throw new EngineRuntimeException(
                'The file path does not exist.'
            );
        }
        $container = $this->getServiceContainerId($service);

        return $this->_exec("docker cp {$from} {$container}:{$destination}");
    }
public function copyFileToService($from, $destination, $service)
    {
        if (!file_exists($from)) {
            throw new EngineRuntimeException(
                'The file path does not exist.'
            );
        }
        $container = $this->getServiceContainerId($service);

        return $this->_exec("docker cp {$from} {$container}:{$destination}");
    }
public function copyFileToService ( $ from , $ destination , $ service ) { if ( ! file_exists ( $ from ) ) { throw new EngineRuntimeException ( 'The file path does not exist.' ) ; } $ container = $ this -> getServiceContainerId ( $ service ) ; return $ this -> _exec ( "docker cp {$from} {$container}:{$destination}" ) ; }
Copy file to docker service.

@param $from
The file from path.
@param $destination
The file destination path.
@param $service
The docker service name.

@return ResultData
Copy file to docker service .