dotnet / dotnet/sdk

failed to create shim task for images built with latest .NET SDK version

Open
#46,050 3 comments 2 reactions 1 assignee Claimed by @nagilson View on GitHub
Area-NetSDK untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Describe the bug

We are building containers using the built-in docker support in the dotnet SDK. De container registry and repository are specified in our .csproj files. We notice that when building with the latest patch, dotnet SDK 8.0.405, images are succesfully pushed to the registry, but they seem corrupt. When trying to start a container, we get the following error (both local and in Azure Container Apps)

**docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/app/HR.My.App": stat /app/HR.My.App: no such file or directory: unknown**

Images built with dotnet SDK 8.0.404 (or 8.0.400) don't seem to have this problem. What could be the cause of this error?

### Which .NET image(s) are you using?

_No response_

### Steps to reproduce

_No response_

### Other information

_No response_

### Output of `docker version`

```console

```

### Output of `docker info`

```console

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.