All the steps to repro this are in the link above (the image affected, Dockerfile and LogMonitorConfig.json.
The choice to have a 50 seconds sleep before retrying might raise a few eyebrows. I am not 100% sure when the EventLog service gets started, I did try with 30 seconds and found it still fails. The closest value that it was always started was 50 seconds. Might require more investigation.
The error
The current fix
This is a quick fix for this bug : https://github.com/microsoft/windows-container-tools/issues/150
All the steps to repro this are in the link above (the image affected, Dockerfile and LogMonitorConfig.json.
The choice to have a 50 seconds sleep before retrying might raise a few eyebrows. I am not 100% sure when the EventLog service gets started, I did try with 30 seconds and found it still fails. The closest value that it was always started was 50 seconds. Might require more investigation.