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

  • Creating a docker image for windows that requires execution of setup executables
  • Prevent docker-machine from downloading newer boot2docker iso?
  • Running the WSO2 Application Manager docker image with custom configuration
  • Options to use latest docker on centos 6?
  • Docker node build - babel preset and deep module errors
  • Restarting process with pid 1 in docker swarm container (replica)
  • 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"]
    

  • MySQL in Docker container
  • Can't connect Docker Wordpress container to MySQL on host
  • docker commit apache container to image brings trouble
  • MySQL 5.5.44 “native” 32% faster than dockerized MySQL 5.5.44
  • Using ENTRYPOINT in a Dockerfile makes the base image's CMD be ignored
  • Enable Remote API on Docker hosts in Ubuntu 14
  • 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.