public function containerExportStream($container)
    {
        return $this->streamingParser->parsePlainStream(
            $this->browser->withOptions(array('streaming' => true))->get(
                $this->uri->expand(
                    '/containers/{container}/export',
                    array(
                        'container' => $container
                    )
                )
            )
        );
    }
public function containerExportStream($container)
    {
        return $this->streamingParser->parsePlainStream(
            $this->browser->withOptions(array('streaming' => true))->get(
                $this->uri->expand(
                    '/containers/{container}/export',
                    array(
                        'container' => $container
                    )
                )
            )
        );
    }
public function containerExportStream ( $ container ) { return $ this -> streamingParser -> parsePlainStream ( $ this -> browser -> withOptions ( array ( 'streaming' => true ) ) -> get ( $ this -> uri -> expand ( '/containers/{container}/export' , array ( 'container' => $ container ) ) ) ) ; }
Export the contents of container id

This returns a stream in the TAR file format containing all files
in the container.

This works for containers of arbitrary sizes as only small chunks have to
be kept in memory.

Accessing individual files in the TAR file format stream is out of scope
for this library. Several libraries are available, one that is known to
work is clue/tar-react (see links).

The resulting stream is a well-behaving readable stream that will emit
the normal stream events.

@param string $container container ID
@return ReadableStreamInterface tar stream
@link https://docs.docker.com/reference/api/docker_remote_api_v1.15/#export-a-container
@link https://github.com/clue/php-tar-react library clue/tar-react
@see self::containerExport()
Export the contents of container id