|
How to copy files from Host to Docker container
Author: Venkata Sudhakar
The below example shows how to copy files from Host to Docker container.
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 README.md b24a2f83884e:/home/user/
|
|