publish a web api based on core RC2 on docker

I’m trying to publish a web api on docker based on docker.

I’m using a docker file with the following content :

  • docker of solr and nutch working together?
  • What is relationship and difference between Docker Volume and Volume Container
  • Why PHP-FPM prefixes a warning when writing to stdout?
  • Docker 1.12-how to run a post deploy script after swarm deploy my service
  • How to correctly deploy docker container to aws?
  • Docker Daemon not running
  • FROM microsoft/dotnet
    COPY . /dotnetapp
    WORKDIR /dotnetapp
    RUN dotnet restore
    EXPOSE 5000
    ENTRYPOINT dotnet run

    I can build and run the image but i’m not able to acces to web api.

  • connection between 2 docker containers using docker compose
  • cannot open RPM, skipping in Dockerfile
  • Cgroups report weird cpu and memory usage
  • blktrace output error in docker container
  • gulp not running on Docker ubuntu
  • What does --net=host option in Docker command really do?
  • One Solution collect form web for “publish a web api based on core RC2 on docker”

    Seems like you have to specify which URL Kestrel will listen to otherwise it won’t accept any connection outside same container.

    So your ENTRYPOINT should be something like

    ENTRYPOINT ["dotnet", "run", "--server.urls="]

    Including the –server.urls argument is vital to allow inbound connections from outside container. If not, Kestrel will reject any connection that is not coming from the container, something not really useful…


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