Skip to content

Manually published app fails to run in container #25426

@asos-markkidd

Description

@asos-markkidd

After carrying out the instructions to create the Dockerfile in the section "To use the manually published app within a Docker container," I can see the image using docker images but when I try to run it I get the following:

~/dotnet-docker/samples/aspnetapp/aspnetapp$ docker run -it --rm --name myaspnetapp_ex myaspnetapp

Cannot use file stream for [/app/aspnetapp.deps.json]: No such file or directory
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/app/'.
Failed to run as a self-contained app.
  - The application was run as a self-contained app because '/app/aspnetapp.runtimeconfig.json' was not found.
  - If this should be a framework-dependent app, add the '/app/aspnetapp.runtimeconfig.json' file and specify the appropriate framework.

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions