Copy folder with wildcard from docker container to host
Creating a backup script to dump mongodb inside a container, I need to copy the folder outside the container, Docker cp doesn't seem to work with wildcards : docker cp mongodb:mongo_dump_* . The following is thrown in the terminal : Error response from daemon: lstat /var/lib/docker/aufs/mnt/SomeHash/mongo_dump_*: no such file or directory Is there any workaround to use wildcards with cp command ? You can create the mongo dump files into a folder inside the container and then copy the folder: this is a workaround. It seems there is no way yet to use wildcards with the docker cp command https:/