mirror of
https://github.com/docker/cli.git
synced 2026-09-01 10:05:51 -05:00
The cp command and copy api endpoint allows users to copy files and or folders from a containers filesystem. Closes #382 Upstream-commit: 5b8cfbe15c29efd3e72ea97ba87867590aeeba25 Component: engine
14 lines
530 B
ReStructuredText
14 lines
530 B
ReStructuredText
:title: Cp Command
|
|
:description: Copy files/folders from the containers filesystem to the host path
|
|
:keywords: cp, docker, container, documentation, copy
|
|
|
|
===========================================================
|
|
``cp`` -- Copy files/folders from the containers filesystem to the host path
|
|
===========================================================
|
|
|
|
::
|
|
|
|
Usage: docker cp CONTAINER:RESOURCE HOSTPATH
|
|
|
|
Copy files/folders from the containers filesystem to the host path. Paths are relative to the root of the filesystem.
|