Adicionando recursos do Windows ao núcleo do servidor Windows em execução no Docker

1

Estou executando o microsoft/windowsservercore:1803 no docker:

docker run -it microsoft/windowsservercore:1803

dentro dela, inicio o powershell e executo o cmdlet Get-WindowsCapability e obtenho a seguinte saída:

PS C:\> Get-WindowsCapability -online
Get-WindowsCapability : The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
At line:1 char:1
+ Get-WindowsCapability -online
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-WindowsCapability], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.GetWindowsCapabilityCommand

A que serviço se refere? Posso configurar o contêiner para permitir que eu execute isso, ou Add-WindowsCapability cmdlets?

Por fim, eu quero rodar [oficialmente distribuído pela Microsoft] servidor OpenSSH.

Atualizar . Verifiquei o status dos serviços do Windows Update e do TrustedInstaller no contêiner (como sugerido nos comentários): o primeiro estava desativado, então eu o habilitei:

Set-Service -Name wuauserv -StartupType Manual
Start-Service -name wuauserv

E tentei executar Get-WindowsCapability novamente:

PS C:\> Get-WindowsCapability -online
Get-WindowsCapability : Get-WindowsCapability failed. Error code = 0x80d03805
At line:1 char:1
+ Get-WindowsCapability -online
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-WindowsCapability], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.GetWindowsCapabilityCommand

Ainda não funciona, mas o erro agora é diferente.

Isso é o que eu vejo no EventLog:

PS C:\> Get-EventLog system

   Index Time          EntryType   Source                 InstanceID Message
   ----- ----          ---------   ------                 ---------- -------
     312 Jun 24 14:07  Information Service Control M...   1073748860 The Windows Update service entered the stopped state.
     311 Jun 24 14:01  Information Service Control M...   1073748860 The Remote Registry service entered the stopped state.
     310 Jun 24 13:59  Information Service Control M...   1073748860 The Windows Error Reporting Service service entered the stopped state.
     309 Jun 24 13:59  Information Service Control M...   1073748860 The Windows Modules Installer service entered the stopped state.
     308 Jun 24 13:57  Information Service Control M...   1073748860 The Windows Error Reporting Service service entered the running state.
     307 Jun 24 13:57  Error       DCOM                        10001 The description for Event ID '10001' in Source 'DCOM' cannot be found.  The local computer may not have the necessary registry information or message DLL files to display the message, or you may not have permission to access them.  The following information is part of the event:'C:\Windows\system32\...
     306 Jun 24 13:57  Error       DCOM                        10001 The description for Event ID '10001' in Source 'DCOM' cannot be found.  The local computer may not have the necessary registry information or message DLL files to display the message, or you may not have permission to access them.  The following information is part of the event:'C:\Windows\system32\...
     305 Jun 24 13:57  Information Service Control M...   1073748860 The Delivery Optimization service entered the running state.
     304 Jun 24 13:57  Information Microsoft-Windows...           44 Windows Update started downloading an update.
     303 Jun 24 13:57  Information Service Control M...   1073748860 The Windows Modules Installer service entered the running state.
     302 Jun 24 13:57  Information Service Control M...   1073748860 The Windows Update service entered the running state.

As duas mensagens de erro são:

The description for Event ID '10001' in Source 'DCOM' cannot be found. The local computer may not have the necessary registry information or message DLL files to display the message, or you may not have permission to access them. The following information is part of the event:'C:\Windows\system32\DllHost.exe /Processid:{AA65DD7C-83AC-48C0-A6FD-9B61FEBF8800}', '0', '{AA65DD7C-83AC-48C0-A6FD-9B61FEBF8800}', 'Unavailable', 'Unavailable'

The description for Event ID '10001' in Source 'DCOM' cannot be found. The local computer may not have the necessary registry information or message DLL files to display the message, or you may not have permission to access them. The following information is part of the event:'C:\Windows\system32\DllHost.ex /Processid:{AA65DD7C-83AC-48C0-A6FD-9B61FEBF8800}', '1008', '{AA65DD7C-83AC-48C0-A6FD-9B61FEBF8800}', 'Unavailable', 'Unavailable'

    
por n0rd 21.06.2018 / 08:39

0 respostas