title: Docker swarm node failing 'non-zero exit'
body: <p>I'm working through a getting started example, but I'm having problems when attempting to deploy an image to a swarm.  Specifically, all nodes end up failing with the following error message:</p>
  
  <pre><code>"task: non-zero exit (2147516553)"
  </code></pre>
  
  <p>The image works when loaded in a single container - but won't run in a swarm.</p>
  
  <p>dockerfile:</p>
  
  <pre><code>FROM microsoft/aspnetcore-build:2.0 AS build-env
  WORKDIR /app
  
  COPY *.csproj ./
  RUN dotnet restore
  
  COPY . ./
  RUN dotnet publish -c Release -o out
  
  FROM microsoft/aspnetcore:2.0
  WORKDIR /app
  COPY --from=build-env /app/out .
  
  ENTRYPOINT ["dotnet", "dotNetCore.dll"]
  </code></pre>
  
  <p>docker-compose.yml:</p>
  
  <pre><code>version: "3"
  services:
    web:
      image: [repo]/get-started
      deploy:
        replicas: 5
        resources:
          limits:
            memory: 50M
        restart_policy:
          condition: on-failure
      ports:
        - "8080:5000"
      networks:
        - webnet
  networks:
    webnet:
  </code></pre>
  
  <p>It looks like all the nodes start properly (get to a running state).  But then fail with the error message.</p>