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
|
|
|
|
docker-cp - Copy files/folders from the PATH to the HOSTPATH
|
|
|
|
|
|
|
|
# SYNOPSIS
|
2014-06-30 22:58:04 -04:00
|
|
|
**docker cp**
|
|
|
|
CONTAINER:PATH HOSTPATH
|
2014-04-16 14:07:55 -04:00
|
|
|
|
|
|
|
# DESCRIPTION
|
2014-06-23 01:15:26 -04:00
|
|
|
Copy files/folders from a container's filesystem to the host
|
2014-04-21 16:28:25 -04:00
|
|
|
path. Paths are relative to the root of the filesystem. Files
|
|
|
|
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
|
|
|
|
There are no available options.
|
|
|
|
|
|
|
|
# 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>
|