You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @deprecated 0.3.0 Deprecated in Docker Engine API v1.20 (Docker v1.8) and removed in Docker Engine API v1.24 (Docker v1.12), use `containerArchive()` instead
735
-
* @see self::containerArchive()
736
-
* @see self::containerCopyStream()
737
-
*/
738
-
publicfunctioncontainerCopy($container, $path)
739
-
{
740
-
return$this->postJson(
741
-
$this->uri->expand(
742
-
'/containers/{container}/copy',
743
-
array(
744
-
'container' => $container
745
-
)
746
-
),
747
-
array(
748
-
'Resource' => $path
749
-
)
750
-
)->then(array($this->parser, 'expectPlain'));
751
-
}
752
-
753
-
/**
754
-
* [Deprecated] Copy files or folders of container id
755
-
*
756
-
* This returns a stream in the TAR file format containing all files
757
-
* specified in the given $path.
758
-
*
759
-
* This works for (any number of) files of arbitrary sizes as only small chunks have to
760
-
* be kept in memory.
761
-
*
762
-
* Accessing individual files in the TAR file format stream is out of scope
763
-
* for this library. Several libraries are available, one that is known to
764
-
* work is clue/reactphp-tar (see links).
765
-
*
766
-
* The resulting stream is a well-behaving readable stream that will emit
767
-
* the normal stream events.
768
-
*
769
-
* @param string $container container ID
770
-
* @param string $path path to file or directory to copy
* @deprecated 0.3.0 Deprecated in Docker Engine API v1.20 (Docker v1.8) and removed in Docker Engine API v1.24 (Docker v1.12), use `containerArchiveStream()` instead
0 commit comments