Please enable PS Session to access Nano Server Insider - Container

%3CLINGO-SUB%20id%3D%22lingo-sub-92018%22%20slang%3D%22en-US%22%3EPlease%20enable%20PS%20Session%20to%20access%20Nano%20Server%20Insider%20-%20Container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-92018%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20trying%20to%20access%20with%20Enter-PSession%20to%20a%20Windows%20Server%20Insider%20-%20Container%20based%20on%20microsoft%2Fnanoserver-insider-powershell.%20That's%20an%20impossible%20mission%2C%20it's%20very%20sad%20that%20we%20can't%20connect%20to%20containers%20that%20way.%20I%20can%20run%20commands%20using%20docker%20exec%2C%20but%20it%20does%20not%20have%20elevate%20privileged%20enoght%20to%20simply%20copy%20vsruntime%20to%20windows%2Fsystem32.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Edocker%20exec%20--privileged%20-i%20nanoinsider%20'C%3A%5Cprogram%20files%5Cpowershell%5Cpowershell'%20-c%20powershell%26nbsp%3B%3C%2FP%3E%3CP%3E%23%23%20--%26gt%3B%20to%20connect%20with%20container.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Edocker%20exec%20--privileged%20-i%20nanoinsider%20'C%3A%5Cprogram%20files%5Cpowershell%5Cpowershell'%20-c%20Invoke-WebRequest%20-Uri%20%3CA%20href%3D%22https%3A%2F%2Fnanoserver.es%2Fnanofiles%2Fvcruntime140.dll%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fnanoserver.es%2Fnanofiles%2Fvcruntime140.dll%3C%2FA%3E-OutFile%20C%3A%5CWindows%5CSystem32%5Cvcruntime140.dll%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20I%20can't%20install%20nanoserver%20package%20to%20deploy%20for%20example%20IIS%20on%20the%20container%2C%20it's%20very%20frustrating.%3C%2FP%3E%3CP%3Edocker%20exec%20--privileged%20-i%20nanoinsider%20'C%3A%5Cprogram%20files%5Cpowershell%5Cpowershell'%20-c%20Install-PackageProvider%20NanoServerPackage%20-Scope%20CurrentUser%20-Force%20-Verbose%2C%20It%20does%20the%20proccess%20but%20fails%20importing.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20dism%20is%20not%20enable%20and%20we%20can't%20deploy%20roles%2C%20features.%20Really%20sad...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20Please%2C%20enable%20PSSession%20access%2C%20or%20give%20us%20a%20instruccions%20to%20connect%20container%20with%20elevate%20rights%2C%20and%20enable%20dism%2C%20it's%20really%20difficult%20interact%20with%20containers%20without%20this%20tools.%3C%2FP%3E%3CP%3EThanks%20all%20!!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-92018%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EContainers%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHyper-V%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EManagement%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

I'm trying to access with Enter-PSession to a Windows Server Insider - Container based on microsoft/nanoserver-insider-powershell. That's an impossible mission, it's very sad that we can't connect to containers that way. I can run commands using docker exec, but it does not have elevate privileged enoght to simply copy vsruntime to windows/system32.

 

docker exec --privileged -i nanoinsider 'C:\program files\powershell\powershell' -c powershell 

## --> to connect with container.

 

docker exec --privileged -i nanoinsider 'C:\program files\powershell\powershell' -c Invoke-WebRequest -Uri https://nanoserver.es/nanofiles/vcruntime140.dll -OutFile C:\Windows\System32\vcruntime140.dll

 

Also, I can't install nanoserver package to deploy for example IIS on the container, it's very frustrating.

docker exec --privileged -i nanoinsider 'C:\program files\powershell\powershell' -c Install-PackageProvider NanoServerPackage -Scope CurrentUser -Force -Verbose, It does the proccess but fails importing.

 

Also dism is not enable and we can't deploy roles, features. Really sad...

 

So, Please, enable PSSession access, or give us a instruccions to connect container with elevate rights, and enable dism, it's really difficult interact with containers without this tools.

Thanks all !!!

0 Replies