Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"unable to detect ipaddress" when running in Windows Docker container #1667

Open
shoreadmin opened this issue May 19, 2021 · 0 comments
Open
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.

Comments

@shoreadmin
Copy link

Description

When running ohai under a Windows docker container (mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019), the ipaddress/macaddress cannot be detected

ipconfig /all displays the correct information, but for some reason the wmi class used by ohai (Win32_NetworkAdapterConfiguration) doesn't include a mac address or ip address!?

The PowerShell call Get-NetAdapter (which returns a CimInstance) seems to work correctly...

Ohai Version

15.7.4

Platform Version

Windows Docker container mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019

Ohai Output

WARN: Plugin Network: unable to detect ipaddress

@shoreadmin shoreadmin added Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected. labels May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

1 participant