Excerpt
- Copy file to folder inside container:
```plain text
docker cp ./src/build/index.html ContainerName:/app/
```
above example shows index.html file is copying to app folder inside container
- Copy all files to folder inside container:
```plain text
docker cp ./src/build/. ContainerName:/app/
```
above example shows all files inside build folder are copying to app folder inside container
Just use "." (Dot - instead of "*" in Linux) after your file path, it will copy entire files from the folder
docker cp /file/path/* containerId:/filepath/nginx/html/
```plain text
docker cp /file/path/. containerId:/filepath/nginx/html/
```
## Your Answer
## Not the answer you're looking for? Browse other questions tagged docker or ask your own question.
- Copy file to folder inside container:
```plain text
docker cp ./src/build/index.html ContainerName:/app/
```
above example shows index.html file is copying to app folder inside container
- Copy all files to folder inside container:
```plain text
docker cp ./src/build/. ContainerName:/app/
```
above example shows all files inside build folder are copying to app folder inside container
Just use "." (Dot - instead of "*" in Linux) after your file path, it will copy entire files from the folder
docker cp /file/path/* containerId:/filepath/nginx/html/
```plain text
docker cp /file/path/. containerId:/filepath/nginx/html/
```
## Your Answer
## Not the answer you're looking for? Browse other questions tagged docker or ask your own question.