2014-04-16 14:07:55 -04:00
|
|
|
% DOCKER(1) Docker User Manuals
|
2014-06-30 22:58:04 -04:00
|
|
|
% Docker Community
|
|
|
|
% JUNE 2014
|
2014-04-16 14:07:55 -04:00
|
|
|
# NAME
|
2015-03-05 11:39:32 -05:00
|
|
|
docker-cp - Copy files/folders from the PATH to the HOSTPATH, or STDOUT
|
2014-04-16 14:07:55 -04:00
|
|
|
|
|
|
|
# SYNOPSIS
|
2014-06-30 22:58:04 -04:00
|
|
|
**docker cp**
|
2014-10-15 17:14:12 -04:00
|
|
|
[**--help**]
|
2015-03-05 11:39:32 -05:00
|
|
|
CONTAINER:PATH HOSTPATH|-
|
2014-04-16 14:07:55 -04:00
|
|
|
|
|
|
|
# DESCRIPTION
|
2015-03-05 11:39:32 -05:00
|
|
|
Copy files/folders from a container's filesystem to the
|
|
|
|
path. Use '-' to write the data as a tar file to STDOUT.
|
|
|
|
Paths are relative to the root of the filesystem. Files
|
2014-04-21 16:28:25 -04:00
|
|
|
can be copied from a running or stopped container.
|
2014-04-16 14:07:55 -04:00
|
|
|
|
2014-06-30 22:58:04 -04:00
|
|
|
# OPTIONS
|
2014-10-15 17:14:12 -04:00
|
|
|
**--help**
|
|
|
|
Print usage statement
|
2014-06-30 22:58:04 -04:00
|
|
|
|
|
|
|
# EXAMPLES
|
2014-04-16 14:07:55 -04:00
|
|
|
An important shell script file, created in a bash shell, is copied from
|
|
|
|
the exited container to the current dir on the host:
|
|
|
|
|
|
|
|
# docker cp c071f3c3ee81:setup.sh .
|
|
|
|
|
|
|
|
# HISTORY
|
|
|
|
April 2014, Originally compiled by William Henry (whenry at redhat dot com)
|
2014-07-01 20:30:25 -04:00
|
|
|
based on docker.com source material and internal work.
|
2014-06-30 22:58:04 -04:00
|
|
|
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|