Pretty much the title says it all. I know I can copy the file (from the host) into a docker container. I also know I can copy the directory into a docker container. But how to copy the contents of a directory (preserving all subdirectories) into a directory in a docker container?
On my host I have a directory called src
. On the docker container I have a directory /var/www/html
. That src
has both files and directories. I need all of them to be copied (with the command) into the container; not bound, not mounted, but copied.
It sounds like a trivial operation, but I've tried so many ways and couldn't find anything online that works! Ideally, it would be best if that copy operation would work every time I run the docker-compose up -d
command.
Thanks in advance!