Skip to content

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

Open
@pietersap

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

Output of docker info

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions