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

  • Vagrant start docker image on existing machine
  • ERRO : Error trying to connect to local peer: grpc: timed out trying to connect
  • Is it possible to prevent RedHat/CentOS Docker host root access from within a container?
  • Can't connect to mongodb docker container from another container
  • container running but cannot be visited in browser
  • How to circumvent “Read-only file system” error on Docker version 0.11 or greater when running sysctl -w during an image build?
  • 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:

    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 Ubuntu Behind Proxy
  • File as command line argument of Docker python app
  • Cannot delete files on docker host
  • how do i add a topic to a running kafka container using docker commands?
  • New device node created on host does not get reflected in Docker container when using --device flag
  • Docker swarm for usb devices
  • 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

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