次の例では、ガイドラインおよび.NETのコアドッカー、開発、テスト、および生産を使用する方法を示します。あなたはそれらのドッカーイメージの基礎としてサンプリングし、またはそれを学ぶことができます。
イメージを構築します
.NETのコアドッカーイメージの構築( https://github.com/dotnet/dotnet-docker/blob/master/samples/dotnetapp/README.md)
ASP.NETコアドッカーイメージの構築(https://github.com/dotnet/dotnet-docker/blob/master/samples/aspnetapp/README.md)
ビルドとテストマルチプロジェクトソリューション( https://github.com/dotnet/dotnet-docker/blob/master/samples/complexapp/README.md )
開発ガイダンス
ドッカービルド環境(https://github.com/dotnet/dotnet-docker/blob/master/samples/establishing-docker-environment.md)
選択.NETのコアイメージタグ( https://github.com/dotnet/dotnet-docker/blob/master/samples/selecting-tags.md)
容器内のテストラン( https://github.com/dotnet/dotnet-docker/blob/master/samples/run-tests-in-sdk-container.md)
SDK容器の建設(https://github.com/dotnet/dotnet-docker/blob/master/samples/build-in-sdk-container.md)
アプリケーションを実行します(SDK容器内の https://github.com/dotnet/dotnet-docker/blob/master/samples/run-in-sdk-container.md)
使用ドッカーとHTTPS実行ASP.NET Coreアプリケーション(開発中 https://github.com/dotnet/dotnet-docker/blob/master/samples/run-aspnetcore-https-development.md )
ホステッドガイド
ドッカーと使用HTTPS ASP.NETコアイメージをホスティング(https://github.com/dotnet/dotnet-docker/blob/master/samples/host-aspnetcore-https.md)
アズール容器レジストリ画像ドッカープッシュ(https://github.com/dotnet/dotnet-docker/blob/master/samples/push-image-to-acr.md)
画像ドッカープッシュハブドッカー( https://github.com/dotnet/dotnet-docker/blob/master/samples/push-image-to-dockerhub.md)
ASP.NETコアコンテナインスタンスにアプリケーションをデプロイアズール(https://github.com/dotnet/dotnet-docker/blob/master/samples/deploy-container-to-aci.md)
例の断片
完全に動作例のプロジェクトに加えて、それはまた、提供されるスニペット (https://github.com/dotnet/dotnet-docker/blob/master/samples/snippets より具体的なシナリオを実証するために)。
NuGet管理証明書(ドッカーシーンで https://github.com/dotnet/dotnet-docker/blob/master/samples/snippets/nuget-credentials.md )
(Dockerfileにインストールされ、.NETのコアhttps://github.com/dotnet/dotnet-docker/blob/master/samples/snippets/installing-dotnet.md)
使用System.Drawing.Commonパッケージ(ドッカーでコンテナ https://github.com/dotnet/dotnet-docker/blob/master/samples/snippets/using-system-drawing-common.md)
ように事前に構築された画像をお試しください
次のコマンドは、コンテナ内の.NETのコアコンソールアプリケーションを実行します:
1ドッキングウィンドウで実行--rm mcr.microsoft.com/dotnet/core/samples
次のコマンドを使用して、Webブラウザでコンテナにアクセスすることができ、コンテナASP.NETコアコンソールアプリケーションで実行されます、URLはhttp:// localhostを:8000
1つのドッキングウィンドウの実行--rm -it -p 8000:80 mcr.microsoft.com/dotnet/core/samples:aspnetapp
ドッカーリポジトリ
あなたは、次のリポジトリ内の.NETコンテナドッカーイメージを見つけることができます。
DOTNET /コア: .NETコア(https://hub.docker.com/_/microsoft-dotnet-core/)
DOTNET /フレームワーク:.NET Frameworkの(https://hub.docker.com/_/microsoft-dotnet-framework/)