Recursively copy files using docker cp

Solution 1:

According to the docker documentation:

The cp command behaves like the Unix cp -a command in that directories are copied recursively with permissions preserved if possible.

This means that docker cp copy files recursively by default.