openeuler/dotnet-aspnet

Sponsored OSS

By openeuler

Updated 5 days ago

openEuler runtime image for ASP.NET apps.

Image
Languages & frameworks
0

1.7K

openeuler/dotnet-aspnet repository overview

Quick reference

Dotnet-aspnet(ASP.NET Core) | openEuler

Current Dotnet-aspnet(ASP.NET Core) docker images are built on the openEuler. This repository is free to use and exempted from per-user rate limits.

Dotnet-aspnet (ASP.NET Core) is an open source cross-platform framework for building modern cloud-based Internet-connected applications, such as web applications, IoT applications, and mobile backends. ASP.NET Core applications run on .NET.

Learn more about Dotnet-aspnet(ASP.NET Core)(ASP on learn.microsoft.com⁠.

The tag of each dotnet-aspnet docker image is consist of the version of dotnet-aspnet and the version of basic image. The details are as follows

TagCurrentlyArchitectures
10.0.0-oe2403sp4dotnet 10.0.0 on openEuler 24.03-LTS-SP4amd64, arm64
10.0.0-oe2403sp2dotnet 10.0.0 on openEuler 24.03-LTS-SP2amd64, arm64
8.0.3-oe2203sp3Dotnet-aspnet 8.0.3 on openEuler 22.03-LTS-SP3amd64, arm64
8.0.7-oe2203sp3Dotnet-aspnet 8.0.7 on openEuler 22.03-LTS-SP3amd64, arm64
8.0.8-oe2203sp3Dotnet-aspnet 8.0.8 on openEuler 22.03-LTS-SP3amd64, arm64
8.0.10-oe2003sp4Dotnet-aspnet 8.0.10 on openEuler 20.03-LTS-SP4amd64, arm64
8.0.10-oe2203sp1Dotnet-aspnet 8.0.10 on openEuler 22.03-LTS-SP1amd64, arm64
8.0.10-oe2203sp3Dotnet-aspnet 8.0.10 on openEuler 22.03-LTS-SP3amd64, arm64
8.0.10-oe2203sp4Dotnet-aspnet 8.0.10 on openEuler 22.03-LTS-SP4amd64, arm64
8.0.10-oe2403ltsDotnet-aspnet 8.0.10 on openEuler 24.03-LTSamd64, arm64

Usage

In this usage, users can select the corresponding {Tag} based on their requirements.

  • Pull the openeuler/dotnet-aspnet image from docker

    docker pull openeuler/dotnet-aspnet:{Tag}
    
  • Start a dotnet-aspnet instance

    docker run -d --name my-dotnet-aspnet -p 8080:8080 openeuler/dotnet-aspnet:{Tag}
    

    After my-dotnet-aspnet is started, access the service through http://localhost:8080.

  • An example with HelloWorld application example

    1. Obtain the dotnetcore-docs-hello-world source code and navigate to the root directory.

      git clone https://github.com/Azure-Samples/dotnetcore-docs-hello-world
      cd dotnetcore-docs-hello-world
      
    2. Modify the .NET Version for Application Publishing Open the dotnetcoresample.csproj file, and replace {x.x} in <TargetFramework>net{x.x}</TargetFramework> with the desired .NET version.

    3. Publish the application.

      dotnet publish -c Release -o /app --self-contained false
      

      During execution, the following key information will be displayed:

      Determining projects to restore...
      All projects are up-to-date for restore.
      dotnetcoresample -> /tmp/dotnetcore-docs-hello-world/bin/Release/net{x.x}/dotnetcoresample.dll
      dotnetcoresample -> /app/
      
    4. Run the application using openeuler/dotnet-aspnet:{Tag}

      docker run --rm -v /app:/app -p 8080:8080 openeuler/dotnet-aspnet:{Tag} /app/dotnetcoresample.dll 
      

      Note: The .NET version {x.x} used for publishing the application must match the version specified by {Tag}.

  • View container running logs

    docker logs -f my-dotnet-aspnet
    
  • To get an interactive shell

    docker run -it --entrypoint /bin/bash --name my-dotnet-aspnet -p 8080:8080 openeuler/dotnet-aspnet:{Tag}
    

Question and answering

If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.

Tag summary

Content type

Image

Digest

sha256:63ca3a15e

Size

129.8 MB

Last updated

5 days ago

docker pull openeuler/dotnet-aspnet:10.0.0-oe2403sp4

This week's pulls

Pulls:

63

Jun 29 to Jul 5