Skip to content
This repository was archived by the owner on Mar 11, 2020. It is now read-only.
This repository was archived by the owner on Mar 11, 2020. It is now read-only.

RemotePath still work? #80

Open
Open
@cdenneen

Description

@cdenneen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions