DEVintersection 2019
Nov 18th – 21st, MGM Grand, Las Vegas NV. Keynotes by Microsoft's Scott Guthrie, Eric Boyd, Julia Liuson, and Scott Hanselman.

.NET Tutorial - Hello World Microservice

Create Docker image

Run the following command:

Command prompt
docker build -t mymicroservice .

The docker build command uses the Dockerfile to build a Docker image.

  • The -t mymicroservice parameter tells it to tag (or name) the image as mymicroservice.
  • The final parameter tells it which directory to use to find the Dockerfile (. specifies the current directory).

You can run the following command to see a list of all images available on your machine, including the one you just created.

Command prompt
docker images
Continue