docker-archive / communitytools-image2docker-win

305 stars 78 forks source link

RemotePath still work? #80

Open cdenneen opened 4 years ago

cdenneen commented 4 years ago

1.8.5

PS C:\share_folder> ConvertTo-Dockerfile -RemotePath \\10.1.10.10\c$ -OutputPath C:\share_folder\i2d\mysite -Artifact IIS
Get-ItemProperty : Cannot find path '\\10.1.10.10\c$\windows\system32\hal.dll' because it does not exist.
At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Public\ConvertTo\ConvertTo-Dockerfile.ps1:136 char:21
+ ... $version = (Get-ItemProperty -Path "$RemotePath\windows\system32\hal. ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (\\10.1.10.10\c...ystem32\hal.dll:String) [Get-ItemProperty], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemPropertyCommand

You cannot call a method on a null-valued expression.
At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Public\ConvertTo\ConvertTo-Dockerfile.ps1:137 char:9
+         $ImageWindowsVersion = $version.Substring(0, $version.IndexOf ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

DiscoverArtifacts : Cannot bind argument to parameter 'ImageWindowsVersion' because it is an empty string.
At C:\Program
Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Public\ConvertTo\ConvertTo-Dockerfile.ps1:172 char:118
+ ... act -OutputPath $OutputPath -ImageWindowsVersion $ImageWindowsVersion
+                                                      ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [DiscoverArtifacts], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,DiscoverArtifacts