I want to copy a directory from the host to a container, but I couldn't use the following command:
$ docker cp -r <a-dir> <a-container-ID>:/destination/path
unknown shorthand flag: 'r' in -r
With scp -r
shell command I can do it, so I expected the same with docker cp -r
.
How do I overcome it without using make a compress .tar
file and the extraction?