MCPcopy
hub / github.com/dgraph-io/dgraph / DockerCp

Function DockerCp

testutil/docker.go:264–267  ·  view source on GitHub ↗

MARKED FOR DEPRECATION: DockerCp copies from/to a container. Paths inside a container have the format container_name:path.

(srcPath, dstPath string)

Source from the content-addressed store, hash-verified

262// MARKED FOR DEPRECATION: DockerCp copies from/to a container. Paths inside a container have the format
263// container_name:path.
264func DockerCp(srcPath, dstPath string) error {
265 argv := []string{"docker", "cp", srcPath, dstPath}
266 return Exec(argv...)
267}
268
269// DockerCpFromContainer copies from a container.
270func DockerCpFromContainer(containerID, srcPath, dstPath string) error {

Callers 7

copyExportToLocalFsFunction · 0.92
CopyOldBackupDirFunction · 0.92
CopyToLocalFsFunction · 0.92
CopyToLocalFsFromNFSFunction · 0.92
setupListBackupsFixtureFunction · 0.92
copyToLocalFsFunction · 0.92

Calls 1

ExecFunction · 0.85

Tested by 4

copyExportToLocalFsFunction · 0.74
setupListBackupsFixtureFunction · 0.74
copyToLocalFsFunction · 0.74