ContainerProvider
ContainerProvider copied to clipboard
Import-ContainerImage doesn't work
It's installed:
PS C:\Users\mcascone\Documents> Get-PackageProvider
Name Version DynamicOptions
---- ------- --------------
ContainerImage 0.6.4.0
But doesn't work:
PS C:\Users\mcascone\Documents> find-package -provider containerimage
WARNING: Cannot bind argument to parameter 'fastPackageReference' because it is an empty string.
WARNING: The property 'version' cannot be found on this object. Verify that the property exists.
WARNING: The property 'Name' cannot be found on this object. Verify that the property exists.
WARNING: Cannot find path 'C:\Users\mcascone\AppData\Local\ContainerImage\ContainerImageGallery_ContainerImageSearchIndex.txt' because it does not exist.
WARNING: Http.GetAsync did not return successful status code. Status Code: NotFound, The specified resource does not exist.
PS C:\Users\mcascone\Documents> Import-ContainerImage ContainerImage
Import-ContainerImage : The term 'Import-ContainerImage' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name,
or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Import-ContainerImage ContainerImage
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Import-ContainerImage:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I have the same issue, did you solve it?
PS C:\Users\Administrator> Install-PackageProvider ContainerImage
PS C:\Users\Administrator> Import-ContainerImage ContainerImage
Import-ContainerImage : 无法将“Import-ContainerImage”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的
拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1
+ Import-ContainerImage ContainerImage
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Import-ContainerImage:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Administrator> Get-PackageProvider
Name Version DynamicOptions
---- ------- --------------
ContainerImage 0.6.4.0
msi 3.0.0.0 AdditionalArguments
msu 3.0.0.0
NuGet 2.8.5.208 Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOnTag...
PowerShellGet 1.0.0.1 PackageManagementProvider, Type, Scope, AllowClobber, SkipPublisherCheck, ...
Programs 3.0.0.0 IncludeWindowsInstaller, IncludeSystemComponent
PS C:\Users\Administrator> find-package -provider containerimage
警告: 无法将参数绑定到参数“fastPackageReference”,因为该参数为空字符串。
警告: 在此对象上找不到属性“version”。请确认该属性存在。
警告: 在此对象上找不到属性“Name”。请确认该属性存在。
警告:
找不到路径“C:\Users\Administrator\AppData\Local\ContainerImage\ContainerImageGallery_ContainerImageSearchIndex.txt”,
因为该路径不存在。
警告: Http.GetAsync did not return successful status code. Status Code: NotFound, The specified resource does not
exist.
PS C:\Users\Administrator> Import-ContainerImage ContainerImage
Import-ContainerImage : 无法将“Import-ContainerImage”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的
拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1
+ Import-ContainerImage ContainerImage
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Import-ContainerImage:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I literally don't remember opening this issue 😳