Here is a way which you can try if you want to copy a file from a container to the host. you can use the below command:
docker cp <containerId>:/file/path/within/container /host/path/target
Here's an example:
[sam@dev]$ sudo docker cp goofy_roentgen:/out_read.jpg .
Here goofy_roentgen is the name I got from the following command:
[sam@dev]$ sudo docker ps
[sudo] password for jalal:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1b4ad9311e93 bamos/openface "/bin/bash" 33 minutes ago Up 33 minutes 0.0.0.0:8000->8000/tcp, 0.0.0.0:9000->9000/tcp goofy_roentge
I hope it will resolve your query.