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

  • Can't install Docker on CentOS 7 running on Vagrant
  • Kubernetes pod not binding volumes to container
  • How can I connect a PHP container with nginx container by using docker-compose?
  • Hitting resources in a private network from within a Docker container using VPN
  • Why can't I run a simple ping from the IBM Liberty Docker image
  • How can I disable internet access for docker containers
  • 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"]

  • How to use kube-proxy to forward https serivce in k8s?
  • Adding a new NIC to a Docker container in a specific order
  • Docker echo to /etc/hosts not working
  • Docker error: Unable to locate package git
  • Installation of system tables failed! boot2docker tutum/mysql mount file volume on Mac OS
  • how could I add user permission parameter into docker-compose
  • 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.