Copy multiple local files to docker container
The following command should copy whole directory data with its content of a data directory to your desired destination:
docker cp data/ sandbox_web_1:/usr/src/app/
Tested on Docker version 1.12.1, but I haven't found any changes to a cp command in a the release 1.12.1
There is a proposal for docker cp
to support wildcards (7710), but it is not implemented yet.
So that leaves you with bash scripting, using docker cp
for each file:
for f in data/*txt; do docker cp $f sandbox_web_1:/usr/src/app/data/; done