Skip to main content

Docker Support

A Docker container image is a lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools, system libraries and settings.

Using Visual Studio Docker Tools, Wisej.NET 3 applications can be packaged and run in these containers.

Project​

Installing​

When creating a cross-platform Wisej.NET 3 application, Visual Studio will prompt the user to add Docker support to the project.

Wisej.NET 3 Project Wizard

Running​

To run the Wisej.NET application in a Docker container, change the runtime target to Docker.

Docker runtime target
danger

When building and running a Docker project, the first TargetFramework is always used. If Docker can't run the first TargetFramework, it will target the second or third listed framework.

Dockerfile​

Docker can build images automatically by reading the instructions from a Dockerfile. A Dockerfile specifies the steps needed to assemble an image. Run docker build to execute those steps and create the image.

Below is a sample Dockerfile configured to run a Wisej.NET 3 application that targets .NET 5.

warning

Be sure to update the Dockerfile if the TargetFramework is not .NET5.0.