.NET and ASP.NET runtimes pre-installed (versions 3.1, 5.0, and 6.0).
Source files (GitHub) Container images (Docker Hub)
Comes pre-installed with the ASP.NET runtime and all required dependencies.
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).
5000
Serves HTTP content from your application.
/app/live
Contains live application files.
/app/publish
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 .
Various helper executables for interacting with your .NET application.
Restarts ASP.NET application.
Starts ASP.NET application.
If you try to start an application that is already running you will get an error as it won't be able to bind to port 5000. You should never need to use this executable as it is called when the container starts.
Stops ASP.NET application, switches live and published code, and terminates the container (you will need to have the restart policy set to 'always').
Uses bf-test-url to request the URL set by ASPNETCORE_URLS
and exits with code 0 if response is HTTP 200 OK
.