Docker
  • Home
  • Alpine
    • Alpine: Executables
  • Alpine S6
    • Alpine S6: Executables
  • Debian
    • Debian: Executables
  • Debian S6
    • Debian S6: Executables
  • Base Images
    • Apache PHP
    • ASP.NET
      • ASP.NET: Executables
    • ClamAV
    • FTPS
    • MariaDB
      • MariaDB: Executables
    • Nginx
      • Nginx: Helpers
      • Nginx: Executables
    • Nginx PHP
      • Nginx PHP: Executables
    • Nginx Proxy
      • Nginx Proxy: Executables
    • Nginx WebDAV
    • PHP
    • PostgreSQL
      • PostgreSQL: Executables
    • Redis
  • Applications
    • FreeScout
    • FreshRSS
    • WordPress
Powered by GitBook
On this page
  • Acknowledgements
  • Tags
  • Ports
  • Volumes
  • Environment Variables
Export as PDF
  1. Base Images

ASP.NET

.NET and ASP.NET runtimes pre-installed (versions 3.1, 5.0, and 6.0).

PreviousApache PHPNextASP.NET: Executables

Last updated 3 years ago

(GitHub) (Docker Hub)

Acknowledgements

Comes pre-installed with the and all required dependencies.

Tags

.NET Version
Tags

3.1

net3, net3.1, net3.1.21

5.0

net5, net5.0, net5.0.12

6.0

latest, net6, net6.0, net6.0.0

In addition, you can add -dev and -beta suffixes to access development / test builds (see Docker Hub for further details).

Ports

Port
Description

5000

Serves HTTP content from your application.

Volumes

Volume
Purpose

/app/live

Contains live application files.

/app/publish

Environment Variables

Name
Values
Description
Default

ASPNET_ASSEMBLY

string

The filename of the assembly to execute.

None - required

ASPNETCORE_URLS

string

Default value binds web server to port 5000 - should not normally need to be changed.

DOTNET_RUNNING_IN_CONTAINER

'true' or 'false'

This should always be set to true - it tells dotnet that it is running in a container environment.

'true'

DOTNET_SYSTEM_GLOBALIZATION_INVARIANT

'true' or 'false'

'true'

Publish updated files to this directory and use to make it go live.

See and .

Source files
Container images
ASP.NET runtime
http://+:5000
here
here
aspnet-switch-terminate