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