You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run the container ch-03-nerd-dinner-web I'm receiving the error below (the same as the last issue):
PS C:\DockerStudy\ch03\ch03-nerd-dinner-web> docker container logs 596bb08cab53
_Invoke-WebRequest : Unable to connect to the remote server
At line:1 char:180
... w3svc; Invoke-WebRequest http://localhost -UseBasicParsing | Out ...
I was experiencing the same issue, I'm not really sure whats going wrong on lines 42 - 46 but breaking it down:
First, it runs ServiceMonitor which monitors the IIS process (w3svc)
Then it tries to access the website running on localhost. - 1st error is for this.
Then it forces IIS to write the current log to the disk.
Lastly, it attempts to show/get the contents of the "C:\iislog\W3SVC\u_extend1.log" file. - 2nd error is for this.
I decided to try and build the image from the source to try to work out what was wrong. First (like with a few of the Dockerfile files in the repository) I needed to update the image to use the mcr.microsoft.com repository:
For me, it seems when I ran the image I built (which just has the changes mentioned to use the mcr.microsoft.com repository), it works fine.
As I only get issues if I run the dockeronwindows/ch03-nerd-dinner-web:2e image I'm not sure what's wrong.
When trying to run the container ch-03-nerd-dinner-web I'm receiving the error below (the same as the last issue):
PS C:\DockerStudy\ch03\ch03-nerd-dinner-web> docker container logs 596bb08cab53
_Invoke-WebRequest : Unable to connect to the remote server
At line:1 char:180
pWebRequest) [Invoke-WebRequest], WebException
ll.Commands.InvokeWebRequestCommand
Get-Content : Cannot find path 'C:\iislog\W3SVC\u_extend1.log' because it does
not exist.
At line:1 char:291
tring) [Get-Content], ItemNotFoundException
ntentCommand_
The text was updated successfully, but these errors were encountered: