Copying files from docker container to the host fails

97 Views Asked by At

I'm using sitespeed to test our website. But the reports were generated in the docker container, but not on the host.

So, I'm trying to use docker cp to get the reports. I can view the reports in the folder by executing the command:

docker exec wizardly_thompson ls /sitespeed.io/sitespeed-result/www.sitespeed.io/2020-03-31-11-26-52

But when I run the command:

docker cp wizardly_thompson:/sitespeed.io/sitespeed-result/www.sitespeed.io/2020-03-31-11-26-52/. d:/Engineer/SiteSpeed/ 

It tells me:

No such contaniner:path:

1

There are 1 best solutions below

1
On

Try with quotes, like this:

docker cp wizardly_thompson:'/sitespeed.io/sitespeed-result/www.sitespeed.io/2020-03-31-11-26-52/.' 'd:/Engineer/SiteSpeed/'

If that doesn't work, try double-quotes instead of single-quotes.