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

Image2Docker: Property "add" cannot be found in .ps1 script #78

Open
ghost opened this issue Apr 12, 2019 · 1 comment
Open

Image2Docker: Property "add" cannot be found in .ps1 script #78

ghost opened this issue Apr 12, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 12, 2019

Hello,
I have not posted many times sorry if I am forgetting something:
Win10 PC
Docker v.18.09.02
The image2docker module has been installed. No errors copying the .vhd file from the original VM.

I am running the cmdlet:
ConvertTo-Dockerfile d-ImagePath C:\Template-Win2012DC.vhd -Artifact IIS -OutputPath c:\i2d2\iis2 -Verbose

I am getting this error below after the file has been mounted. I am the admin of the machine, I did remove the antivirus/firewalls (to check), and no user groups.

Any help would be greatly appreciated. Thank you!
.....................................................

Select-Object : Property "add" cannot be found.
At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplica
tionHost.ps1:96 char:103

  • ... elect-Object -ExpandProperty Node | Select-Object -ExpandProperty add
  •                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (handlers:PSObject) [Select-Object], PSArgumentException
    • FullyQualifiedErrorId : ExpandPropertyNotFound,Microsoft.PowerShell.Commands.SelectObjectCommand
@siliconbuilt
Copy link

Hi I am facing a similar error while using ConvertTo-Dockerfile cmdlet from image2docker module. I am using an exported VM image file (filename.vhdx.DISM.vhdx) to create docker file.

VERBOSE: Starting conversion process
VERBOSE: Started discovering IIS artifact
VERBOSE: Checking IIS ApplicationHost config for Windows Version: 6.3
Select-Object : Property "add" cannot be found.
At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94
char:103

  • ... elect-Object -ExpandProperty Node | Select-Object -ExpandProperty add
  •                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (handlers:PSObject) [Select-Object], PSArgumentException
    • FullyQualifiedErrorId : ExpandPropertyNotFound,Microsoft.PowerShell.Commands.SelectObjectCommand

Select-Object : Property "add" cannot be found.
At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94
char:103

  • ... elect-Object -ExpandProperty Node | Select-Object -ExpandProperty add
  •                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (handlers:PSObject) [Select-Object], PSArgumentException
    • FullyQualifiedErrorId : ExpandPropertyNotFound,Microsoft.PowerShell.Commands.SelectObjectCommand

VERBOSE: Target Image Version 6.3.9600.17246
VERBOSE: IIS service is present on the system
VERBOSE: ASP.NET is present on the system
VERBOSE: .NET 3.5 is present on the system
VERBOSE: Finished discovering IIS artifact

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant