Docker cp command
docker cp: copy data between the container and the host used.
grammar
docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-
docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH
OPTIONS Description:
-L: Keep the source of the link target
Examples
The host / www / w3big catalog copy to the container 96f7f14e99ab / www directory.
docker cp /www/w3big 96f7f14e99ab:/www/
The host / www / w3big container 96f7f14e99ab catalog copy, and rename the directory www.
docker cp /www/w3big 96f7f14e99ab:/www
The vessel 96f7f14e99ab the / www directory are copied to the host / tmp directory.
docker cp 96f7f14e99ab:/www /tmp/