Building a .NET Core application to run in Docker

 

We will build a .NET Core application using Visual Studio 2017 to run in a docker container.  Containers like docker are an abstraction that act like a virtual OS. Check out docs.docker.com for details.

I’m running Windows 10 Pro x64  version 1703 and using Visual Studio 2017 version 15.2.

Get docker for windows installed by following instructions at the docker web site above. Note you’ll need an x64 current version of Windows 10 Pro or Enterprise.

Here is the docker version I installed:

Once installed and running you can also get version from the command line :

You need to configure docker to run windows containers, as you can see about the default OS/Arch is linux/amd64. Switch using the hidden docker icon on task bar.

Check version again on command line and you should see OS/Arch: windows/amd64

First step will be to get a .NET Core image from the Docker Store and we want one that contains run-time and sdk.

Leave a Reply

Your email address will not be published. Required fields are marked *