I'm having a Windows 10 host with Hyper-V Linux VM having IOT EdgeAgent and EdgeHub modules installed. I have provided storageFolder mount to EdgeAgent & Hub to store offline files at var/iotedge/storage location in EdgeHub container.
I would like to run docker command to copy this nested VM container files with host Windows local C:/TempEdge folder.
Step 1: Using "connect-eflowVM" command to connect to IotEdge VM Step 2: sudo docker cp EdgeHub:/var/iotedge/storage "c:/TempEdge"
But it's treating 'c' as another container and throwing cannot copy between container error.
I have tried replacing "c:/TempEdge" with "//c/TempEdge" and "c/TempEdge"
But then it throws no such file directory error.
What will be the correct format or way to run this query in EflowVM (hyper-V) and copy data to host Windows C drive
Edit: Adding message for No such file or directory error
PS C:\Windows\system32> Copy-EflowVmFile -fromFile "C:\Users\XXXXXXX\TempEdge" -toFile "blobStorage" scp failed to execute [scp: C:/Users/XXXXXXX/TempEdge: No such file or directory] At C:\Program Files\WindowsPowerShell\Modules\AzureEFLOW\AzureEFLOW.psm1:4349 char:9
+throw "$command $arguments failed to execute [$err]" +CategoryInfo : OperationStopped: (scp failed to ...e or directory]:String) [], RuntimeException +FullyQualifiedErrorId : scp failed to execute [scp:C:/Users/XXXXXXX/TempEdge: No such file or directory


Copy-EflowVmFile -fromFile "local/path/to/source/file.txt" -toFile "remote/path/on/vm/file.txt" -pushFile