1
I am trying to copy a file from inside a Docker container using the following command:
docker cp container_id:app.txt ~/desktop/app.txt
But it returns me the following error:
invalid output path: directory "C:\\Users\\my_user\\desktop\\~\\desktop" does not exist
What I want is to copy this file app.txt
to the desktop, so I tried to use the logic of cd ~/desktop
, that would take the current user and enter the folder desktop
, but it didn’t work.
Is there any right way to do this?
wouldn’t it be easier to copy to any folder and then move to the desktop? these windows paths sometimes resolve themselves
– Ricardo Pontual