Link to home
Start Free TrialLog in
Avatar of NAMEWITHELD12
NAMEWITHELD12Flag for United States of America

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
Avatar of NAMEWITHELD12
NAMEWITHELD12
Flag of United States of America image

ASKER

I am mapping 8000 on the host side to 8000 on the container side , so if I attempt to browse to  the HOSTS IP on port 8000 I get " access denied "

there is clearly a permissions issue with the container ?
access-denied-.JPG
Avatar of Chris Dent
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.
SOLUTION
Avatar of Dan McFadden
Dan McFadden
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
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!!!!!!!!!!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 !!!!!