|
How to copy files from Docker container to Host
Author: Venkata Sudhakar
The below example shows how to copy files from Docker container to Host.
1 | C:\BTC\websphere-k8s-master>docker cp |
2 | "docker cp" requires exactly 2 arguments. |
5 | Usage: docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|- |
6 | docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH |
8 | Copy files/folders between a container and the local filesystem |
Typical usage is shown below,
docker cp 70b8d51a70af:/home/user/somefile.txt .
|
|