NAMEWITHELD12
asked on
Microsoft IIS running in a DOCKER container , how can I access the webpage ?
this is a Docker container running on my 2016 server ,the ports are open the firewall is off , I am not sure why I am getting page cannot be displayed errors
this is the container config
PS C:\web> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d024bd2c7dd2 iis-site "C:\\ServiceMonitor..." 17 hours ago Up 17 hours 80/tcp, 0.0.0.0:8000->8000/tcp my-running-site
this is the docker file
FROM microsoft/iis
RUN mkdir C:\site
RUN powershell -NoProfile -Command \
Import-module IISAdministration; \
New-IISSite -Name "Site" -PhysicalPath C:\site -BindingInformation "*:8000:"
EXPOSE 8000
ADD content/ /site
SO I attempt every combination I can think of to browse to this content , http , https , port 80, port 800 what an I missing here ?
I CAN get to the default landing page be that is all
this is the container config
PS C:\web> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d024bd2c7dd2 iis-site "C:\\ServiceMonitor..." 17 hours ago Up 17 hours 80/tcp, 0.0.0.0:8000->8000/tcp my-running-site
this is the docker file
FROM microsoft/iis
RUN mkdir C:\site
RUN powershell -NoProfile -Command \
Import-module IISAdministration; \
New-IISSite -Name "Site" -PhysicalPath C:\site -BindingInformation "*:8000:"
EXPOSE 8000
ADD content/ /site
SO I attempt every combination I can think of to browse to this content , http , https , port 80, port 800 what an I missing here ?
I CAN get to the default landing page be that is all
Oh phew, I nearly posted that you need to try port 8000 :)
Enable Windows Authentication on the web site? It's likely you're trying to access as anonymous if you haven't configured authentication at all.
Enable Windows Authentication on the web site? It's likely you're trying to access as anonymous if you haven't configured authentication at all.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Chris , yeah I think you are on the right path to a solution , I think the issues is permissions the question is how to enable windows authentications on the website IN THE CONTAINER ? I have IIS manager and cannot connect to the IIS container either
ASKER
Dan , that is s great article you send me . i followed it but still cannot get to the address http://10.1.1.1/ I get page cannot be displayed
do I have the URL correct ?
thanks to BOTH of you for all the help!!!!!!!!!!
do I have the URL correct ?
thanks to BOTH of you for all the help!!!!!!!!!!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Chris , that is ok , I appreciate the help for sure . this is some weird stuff Docker in Linux is weird but Docker on windows is just bizarre!!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This was an issue where there was no content on the webpage from what I can figure . make sure you have valid HTML to look at !!!!!!
thanks !!!!!
thanks !!!!!
ASKER
there is clearly a permissions issue with the container ?
access-denied-.JPG