Is there a default user/password that the base microsoft/windowsservercore image uses?
I faced the same problem when i used microsoft/iis image. You are able to connect trough IIS Manager, but you are forced to enter a password because "empty" is not valid. so what i did with both docker images was the following: i added an admin user
RUN NET USER testing "Password01!" /ADD
RUN NET LOCALGROUP "Administrators" "testing" /ADD
hope that helps you, using this method for many docker images
You can login into running container with Enter-PSSession with -RunAsAdministrator
command and then create user and add to administrator's group via get-command -module Microsoft.Powershell.localaccounts
I put it in start up script of container and read those off values passed as environment variables which are used to start a container. This way you don't need to hardcode those values into image.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With