PS C:\Windows\system32> docker cp c:\temp\temp.txt mysandbox:/c:/temp/temp.txt
docker : Error response from daemon: filesystem operations against a running Hyper-V container are not supported
At line:1 char:1
+ docker cp c:\temp\temp.txt mysandbox:/c:/temp/temp.txt
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Error response ...e not supported:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
PS C:\Windows\system32> docker cp c:\temp\temp.txt mysandbox:/c:/temp/temp.txt
docker : Error: No such container:path: mysandbox:\c:\temp
At line:1 char:1
+ docker cp c:\temp\temp.txt mysandbox:/c:/temp/temp.txt
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Error: No such ...andbox:\c:\temp:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Answers
The best way is to install BcContainerHelper
https://ricardopaiva.github.io/cheatsheet/business-central-bccontainerhelper-cheat-sheet/
And use the command Copy-FileToBcContainer.
Regards
Works!