Docker IIS Network Connection to External Network

Completely new to Dockers here.

I have a very simple .NET 45 application, that is built on ServiceStack framework. They are mainly APIs web services.

  • Easy, straightforward, robust way to make host port available to Docker container?
  • Can I run existing ASP.NET MVC application in Docker without converting to ASP.NET Core in Linux
  • Docker-Machine and Swarm behind proxy
  • Docker Compose - Flyway - Unable to obtain Jdbc connection from DataSource
  • What is the reason for various “executable file not found in $PATH” errors?
  • Consul/Registrator architecture - do I need a separate Consul agent on each VM?
  • Docker image is built well, container is deployed well and running, no issues. I am using Windows Container (not docker for windows). However, I have one particular web service that is calling a third party API(Legacy), and we are using SOAP client to do that. However, this web services always throw EndpointNotFound exception:

    “There was no endpoint listening at https://externalapi.asmx that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.”

    I have read up on Windows NAT issue problem. My gut feeling is that the self contained container is isolated, and hence no external internet connectivity to the outside world. Is there anything that I need to configure on my microsoft/iis image?

    My Docker file:

    FROM microsoft/iis
    SHELL ["powershell"]
    RUN Install-WindowsFeature NET-Framework-45-ASPNET ; \
        Install-WindowsFeature Web-Asp-Net45
    COPY \ MyAwesomeWebsite
    RUN Remove-WebSite -Name 'Default Web Site'
    RUN New-Website -Name 'MyAwesomeWebsite' -Port 80 \
        -PhysicalPath 'c:\MyAwesomeWebsite' -ApplicationPool '.NET v4.5'
    EXPOSE 80

  • Task on marathon never ends
  • How do I connect my iPhone to my local docker container if they're both on the same network?
  • How to host two Docker containers exposing port 80 on the same server
  • What exactly is a Docker repository?
  • Node.js Docker image environment variables
  • Accessing host's host:port from Docker container in OSX
  • One Solution collect form web for “Docker IIS Network Connection to External Network”

    You can easily check connectivity to external world from your container. Just login to it and try to issue the same call from there. It can be multitude of issues and simplest one can be firewall running on your container host. For me for example unless I stop Mcafee firewall it’s not going to work since Mcafee firewall sees traffic coming from 172.x subnet (which container will be run on by default) and it blocks it.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.