Windows event logs for "microsoft/nanoserver" Docker container

Docker EE on Windows Server 2016.
Version: Docker version 17.03.1-ee-3, build 3fcee33
Docker image: microsoft/nanoserver (July 11, 2017)

I know that nanoserver has more limited support for Powershell than “microsoft/windowsservercore” I’m trying to figure out a way to get the Windows application event logs, since the typical “Get-EventLog” cmdlet is not supported in nanoserver

Due to the large size of Windows Server Core Docker image, I’m trying to utilize the nanoserver Docker image as my base image, but I’m finding it difficult to debug some installation problems because I’m not yet able to find a way to get to the event logs.

Does anyone have recommendations? Thanks!

Use Get-WinEvent instead

1 Like