Coder Social home page Coder Social logo

v-hongbl / dotnet-docker-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dotnet/dotnet-docker-samples

0.0 0.0 0.0 7.39 MB

.NET Core Docker samples.

Home Page: https://hub.docker.com/r/microsoft/dotnet-samples/

License: MIT License

C# 96.49% CSS 3.35% JavaScript 0.16%

dotnet-docker-samples's Introduction

.NET Core Docker Samples

This repo contains samples that demonstrate various .NET Core Docker configurations, which you can use as the basis of your own Docker images. They are also generally useful .NET Core samples and provide instructions for use with and without Docker.

These samples depend on the .NET Core Docker images on Docker Hub, provided by the .NET Team at Microsoft.

Docker uses docker/whalesay as a getting started sample. The .NET Core Team at Microsoft uses dotnetbot, which is the mascot for .NET open source projects. Got something to say? Both whalesay and dotnetbot are great listeners. The dotnetapp-dev, dotnetapp-prod, and dotnetapp-selfcontained samples all simply print a "Welcome!" message to the console. The aspnetapp sample starts a basic ASP.NET Core website running in a container that you can browse to locally.

You can pick the sample that best fits the scenario you are interested in. The instructions for each sample describe how to target Windows or Linux Docker images, from Windows, Linux or macOS.

The samples use .NET Core 2.0. They use Docker multi-stage build and multi-arch tags where appropriate.

You need to have the .NET Core SDK and Git and Docker client 17.06 or newer clients installed to use these samples.

Getting Started

You can run a sample application that runs from a pre-built image that has been published to Docker Hub. The source of this sample application is the dotnetapp-prod sample.

To run the Linux image:

docker run microsoft/dotnet-samples

To run the Windows image:

docker run microsoft/dotnet-samples:dotnetapp-nanoserver

It is recomended to run the sample twice. The second run will not include downloading the image, so is more representative of typical Docker use.

Samples

The following samples show different ways to use .NET Core images.

Development

  • .NET Core Development Sample - This sample is good for development and building since it relies on the .NET Core SDK image. It performs dotnet commands on your behalf, reducing the time it takes to create Docker images (assuming you make changes and then test them in a container, iteratively).

Production

ARM32 / Raspberry Pi

Related Repositories

See the following related Docker Hub repos:

See the following related GitHub repos:

dotnet-docker-samples's People

Contributors

aditidugar-zz avatar hongbo2014 avatar kendrahavens avatar michaelsimons avatar rakeshsinghranchi avatar ravimeda avatar richlander avatar v-hongbl avatar vivmishra avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.