Manually running container exists with code 145

I am trying to manually run the image, that is created through Visual Studio 2017, using docker commands in powershell, with the following command

docker run -d -p 12345:80 webapplication1:dev

  • Links apps in Docker Swarm Mode
  • gnome-desktop docker image works with Linux Mint Host but not CentOS?
  • How to locate an Asp.net core site on subpath
  • use nvidia-docker from docker-compose
  • Docker: exposed ports cannot be accessed in another container
  • How to mask multiple Docker containers to a single public IP on Windows 10/ Server 2016
  • But the container exits immediately with Code 145.

    PS C:\WINDOWS\system32> docker images
    REPOSITORY         TAG        IMAGE ID            CREATED           SIZE
    webapplication1    dev        b4f4585be3d1        6 minutes ago     305MB
    
    PS C:\WINDOWS\system32> docker ps -a
    CONTAINER ID  IMAGE                COMMAND                 CREATED        STATUS                        PORTS                   NAMES
    41aa3e20e4be  webapplication1:dev  "dotnet WebApplica..."  11 minutes ago Exited (145) 11 minutes ago                           condescending_shaw
    

    Running docker logs condescending_shaw shows the following

    PS C:\WINDOWS\system32> docker logs condescending_shaw
      Did you mean to run dotnet SDK commands? Please install dotnet SDK from:
      http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
    

    Currently I have no clue what the Code 145 means and why I cannot run the image manually. So any help what I am doing wrong would be fine. Running the app via Visual Studio 2017 and Docker SupportTools is no problem. The application works just fine.

    I also tried creating new images with the Dockerfile. But those containers also exit with 145.

    Heres the Dockerfile for reference

    FROM microsoft/aspnetcore:1.1
    ARG source
    WORKDIR /app
    EXPOSE 80
    COPY ${source:-publish} .
    ENTRYPOINT ["dotnet", "WebApplication1.dll"]
    

  • Docker and sensitive information used at run-time
  • Source controlling (git) docker-compose.yml
  • How to resolve docker host names (/etc/hosts) in containers
  • How to set maven options to run for release or snapshot
  • Deploy Django app with Docker
  • Go - Cross compiling with CGO using xgo library
  • One Solution collect form web for “Manually running container exists with code 145”

    Your application probably requieres the SDK and not just the .NET core runtime you are using. Try to use this image instead
    https://hub.docker.com/r/microsoft/aspnetcore-build/.

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