Hey there. I’m new to Docker.
I’m running a Win2016 container on a Win2016 host, which I launched as follows:
docker run -d --name goober --hostname goober modified-iis
My question is: Is there a way to enter a remote powershell session to manage the container? I’ve tried:
Enter-PSSession -ComputerName “goober”
…but get ‘access denied’. I also tried:
Enter-PSSession -ComputerName “goober” -Credential Administrator
to no avail. I also ran:
Set-Item -Path WSMan:\localhost\Client\TrustedHosts -Value “goober”
on the client (the host os) to make sure ‘goober’ is a trusted host. I’m out of ideas. It doesn’t appear to be an authentication issue. But I always receive the same “access denied” error. Could someone give me a run-through on how to complete this simple task?