{"id":275131,"date":"2016-02-29T10:41:02","date_gmt":"2016-02-29T07:41:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=275131"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=275131","title":{"rendered":"ASP.NET Core + Docker: \u0433\u043e\u0442\u043e\u0432\u0438\u043c \u0432\u043c\u0435\u0441\u0442\u0435"},"content":{"rendered":"<br \/>\n<blockquote><p><i>\u041c\u044b \u0440\u0430\u0434\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u0430\u043c\u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u0438\u0437 \u0441\u0435\u0440\u0438\u0438 \u0441\u0442\u0430\u0442\u0435\u0439 \u043e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 ASP.NET Core (\u0440\u0430\u043d\u0435\u0435 ASP.NET 5). \u0412 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0412\u044f\u0447\u0435\u0441\u043b\u0430\u0432 \u0411\u043e\u0431\u0438\u043a \u2014 .NET-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438\u0437 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Radario, \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442 \u0441\u0432\u043e\u0439 \u0440\u0430\u0441\u0441\u043a\u0430\u0437 \u043e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u043e\u043c \u043f\u0440\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 ASP.NET \u0441 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438 Docker. \u0412\u0441\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0446\u0438\u043a\u043b\u0430 \u0432\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 \u0442\u0443\u0442 <a href=\"https:\/\/habrahabr.ru\/search\/?q=%5B%23aspnetcolumn%5D&amp;target_type=posts\">#aspnetcolumn<\/a> \u2014 \u0412\u043b\u0430\u0434\u0438\u043c\u0438\u0440 \u042e\u043d\u0435\u0432<\/i><\/p><\/blockquote>\n<p>  <img decoding=\"async\" src=\"http:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/7\/79\/Docker_%28container_engine%29_logo.png\/250px-Docker_%28container_engine%29_logo.png\" alt=\"image\"\/><\/p>\n<p>  \u041a\u0430\u043c \u043d\u0430\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, ASP.NET Core, \u043c\u043e\u0436\u043d\u043e(\u0438 \u0434\u0430\u0436\u0435 \u043d\u0443\u0436\u043d\u043e) \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 Windows, \u043d\u043e \u0442\u0430\u043a \u0436\u0435 \u043d\u0430 Mac \u0438 Linux. \u0427\u0442\u043e \u044d\u0442\u043e \u043d\u0430\u043c \u0434\u0430\u0435\u0442? \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0435\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u043c\u0438 \u0432 docker \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0438 \u0443\u0434\u043e\u0431\u043d\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445\\\u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0441\u0440\u0435\u0434\u0430\u0445. \u041c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043e \u0442\u043e\u043c <a href=\"https:\/\/habrahabr.ru\/post\/253877\/\">\u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 docker<\/a> \u0438 \u043a\u0430\u043a \u0435\u0433\u043e <a href=\"https:\/\/docs.docker.com\/engine\/installation\/\">\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c<\/a>, \u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437 \u0441 ASP.NET Core.<\/p>\n<h4>\u041f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0435\u043c \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0432\u044b\u0431\u043e\u0440 \u043d\u0430 \u0447\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0430\u0448\u0435 \u043f\u0435\u0440\u0432\u043e\u0435 ASP.NET Core \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435: \u043d\u0430 <strong>mono<\/strong> \u0438\u043b\u0438 \u043d\u0430 <strong>coreclr<\/strong>. \u042f \u0432\u044b\u0431\u0435\u0440\u0443 \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0434\u043d\u043e, \u0441\u0442\u0438\u043b\u044c\u043d\u043e, \u043c\u043e\u043b\u043e\u0434\u0435\u0436\u043d\u043e. <\/p>\n<p>  \u041f\u043e \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u043c \u043f\u0443\u0441\u0442\u043e\u0439 ASP.NET Core \u043f\u0440\u043e\u0435\u043a\u0442:<br \/>  <a name=\"habracut\"><\/a><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/7d7\/fee\/e31\/7d7feee313814d4598078ce1c92925ec.png\" alt=\"alt\"\/><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0437\u0430\u0439\u0434\u0435\u043c \u0432 \u0444\u0430\u0439\u043b <code>project.json<\/code>, \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u043e\u043b\u044f:<\/p>\n<pre><code>....  &quot;dependencies&quot;: {     &quot;Microsoft.AspNet.IISPlatformHandler&quot;: &quot;1.0.0-rc1-final&quot;,     &quot;Microsoft.AspNet.Server.Kestrel&quot;: &quot;1.0.0-rc1-final&quot;   },    &quot;commands&quot;: {     &quot;web&quot;: &quot;Microsoft.AspNet.Server.Kestrel --server.urls http:\/\/*:5004&quot;   } , ....<\/code><\/pre>\n<p>  \u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0441\u0435\u043a\u0446\u0438\u044f <a href=\"http:\/\/docs.asp.net\/en\/latest\/dnx\/commands.html\">commands<\/a>, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>web<\/code>. \u041f\u0440\u0438 \u0435\u0451 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f <code>kestrel<\/code> \u0432\u044d\u0431 \u0441\u0435\u0440\u0432\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e 5004 \u043f\u043e\u0440\u0442\u0443.(???) <\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043b\u0438 \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e: \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0431\u0435\u0434\u0438\u043c\u0441\u044f \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0443\u0436\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f <strong>DNX<\/strong>, \u0438 \u043e\u043d\u0430 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. <\/p>\n<h4>\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c<\/h4>\n<p>  <\/p>\n<pre><code>dnvm list<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/050\/c67\/735\/050c677356e44fe7a9197444835ad3db.png\" alt=\"alt\"\/> <\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432\u044b\u0431\u0440\u0430\u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044f \u0441 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u043e\u043c <strong>clr<\/strong>, \u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f \u043d\u0430 <strong>coreclr<\/strong> \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code>dnvm use 1.0.0-rc1-final -r coreclr -p<\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u0435\u0440\u0441\u0438\u044f <strong>coreclr<\/strong>, \u0442\u043e \u0435\u0451 \u043b\u0435\u0433\u043a\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432<\/p>\n<pre><code>dnvm upgrade -r coreclr<\/code><\/pre>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0443\u0436\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435: \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 \u0433\u0434\u0435 \u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c. <\/p>\n<pre><code>&gt; dnu restore &gt; dnx web<\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0432\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u0432\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0431\u0441\u0432\u0435\u043d\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u0422\u0435\u043f\u0435\u0440\u044c \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/localhost:5004\">http:\/\/localhost:5004<\/a>, \u0442\u043e \u0443\u0432\u0438\u0434\u0438\u043c \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435. \u0412\u0441\u0435, \u043c\u044b \u0433\u043e\u0442\u043e\u0432\u044b \u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440.<\/p>\n<h4>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u043e\u043a\u0435\u0440 \u043e\u0431\u0440\u0430\u0437<\/h4>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u043a\u0435\u0440 \u0441\u043e\u0431\u0440\u0430\u043b \u043d\u0430\u043c \u043e\u0431\u0440\u0430\u0437(image), \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u043c\u0443[\u0434\u043e\u043a\u0435\u0440\u0443] \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u043a\u043e\u043c\u043c\u0430\u043d\u0434 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0432 \u0434\u043e\u043a\u0435\u0440 \u0444\u0430\u0439\u043b\u0435. <\/p>\n<p>  \u0414\u043e\u043a\u0435\u0440 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043e\u0431\u0437\u0430\u0440(image) \u0447\u0438\u0442\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438\u0437 <code>Dockerfile<\/code>. \u0421\u043e\u0437\u0434\u0430\u043c\u0438 <code>Dockerfile<\/code> \u0432 \u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 (<em>\u0445\u043e\u0442\u044c \u044d\u0442\u043e \u0438 \u043d\u0435 \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u0442 <a href=\"https:\/\/docs.docker.com\/engine\/userguide\/eng-image\/dockerfile_best-practices\/\">\u043b\u0443\u0447\u0448\u0438\u043c \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430\u043c<\/a> \u043f\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e Dockerfile<\/em>) \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0433\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<pre><code>FROM microsoft\/aspnet:1.0.0-rc1-update1-coreclr  COPY . \/app WORKDIR \/app RUN [&quot;dnu&quot;, &quot;restore&quot;]  EXPOSE 5004 ENTRYPOINT [&quot;dnx&quot;, &quot;-p&quot;, &quot;project.json&quot;, &quot;web&quot;]<\/code><\/pre>\n<p>  <strong>FROM<\/strong> \u2014 \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439<br \/>  <strong>COPY<\/strong> \u2014 \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0432\u0441\u0435 \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 (.) \u0432 \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430, \u0432 \u043f\u0430\u043f\u043a\u0443 \/app<br \/>  <strong>WORKDIR<\/strong> \u2014 \u0417\u0430\u0434\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b RUN, CMD, ENTRYPOINT, COPY \u0438 ADD \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0442\u0435 \u0437\u0430 \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0432 \u0434\u043e\u043a\u0435\u0440\u0444\u0430\u0439\u043b\u0435 <\/p>\n<p>  <strong>RUN<\/strong> \u2014 \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. RUN \u0434\u0435\u043b\u0430\u0435\u0442\u044c \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u043b\u043e\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0432\u043e\u0442 <a href=\"https:\/\/docs.docker.com\/engine\/reference\/builder\/#run\">\u0442\u0443\u0442<\/a> \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435<br \/>  <strong>EXPOSE<\/strong> \u2014 \u0413\u043e\u0432\u043e\u0440\u0438\u043c \u0434\u043e\u043a\u0435\u0440\u0443, \u0447\u0442\u043e \u0432 \u043d\u0430\u0448\u0435\u043c \u043e\u0431\u0440\u0430\u0437\u0435 \u0435\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u0443\u0448\u0430\u0442\u044c 5004 \u043f\u043e\u0440\u0442 (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 <em>project.json<\/em>)<\/p>\n<p>  <strong>ENTRYPOINT<\/strong> \u2014 \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430. \u041e\u0442\u043b\u0438\u0447\u0438\u044f \u043e\u0442 <a href=\"https:\/\/www.ctl.io\/developers\/blog\/post\/dockerfile-entrypoint-vs-cmd\/\">CMD<\/a><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0431\u0435\u0440\u0435\u043c \u043d\u0430\u0448 \u043e\u0431\u0440\u0430\u0437:<\/p>\n<pre><code>docker build -t first-aspnet-app .<\/code><\/pre>\n<p>  \u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0448 \u043e\u0431\u0440\u0430\u0437 \u0441\u043e\u0431\u0440\u0430\u043b\u0441\u044f, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0435\u0433\u043e:<\/p>\n<pre><code>docker run -d -p 80:5004 first-aspnet-app<\/code><\/pre>\n<p>  -d \u2014 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0432 \u0431\u044d\u043a\u0433\u0440\u0430\u0443\u043d\u0434, \u0438\u043d\u0430\u0447\u0435\u043d\u0435 \u0432\u0432\u043e\u0434\/\u0432\u044b\u0432\u043e\u0434 \u0432\u044d\u0431 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0431\u044b\u043b \u0431\u044b \u043f\u0440\u0438\u0430\u0442\u0442\u0430\u0447\u0435\u043d \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u0448\u0435\u043b\u043b\u0443.<br \/>  -p \u2014 \u043c\u0430\u043f\u043f\u0438\u0442 \u043f\u043e\u0440\u0442 \u0445\u043e\u0441\u0442\u043e\u0432\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u043d\u0430 exposed \u043f\u043e\u0440\u0442 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430. \u0422.\u0435 \u0432\u0441\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043f\u0440\u0438\u0448\u0435\u0434\u0448\u0438\u0435 \u043d\u0430 80 \u043f\u043e\u0440\u0442 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u043e\u0431\u0440\u043e\u0448\u0435\u043d\u044b \u043d\u0430 \u043f\u043e\u0440\u0442 5004<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0439\u0442\u0438 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <code>http:\/\/localhost:80<\/code> \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435. \u0422\u0430\u043a \u043a\u0430\u043a \u044f \u0441 \u0434\u043e\u043a\u0435\u0440\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0432 windows \u0441\u0440\u0435\u0434\u0435, \u0442\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e \u043d\u0435 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0430 \u0447\u0435\u0440\u0435\u0437 <code>docker-machine<\/code>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043d\u0435 \u043d\u0430\u0434\u043e \u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u043d\u0430 ip \u0430\u0434\u0440\u0435\u0441\u0441 <code>docker-machine<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u043d\u0435 \u0445\u0438\u0442\u0440\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <\/p>\n<pre><code>docker-machine ip<\/code><\/pre>\n<p>  \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430\u0434\u043e \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <code>http:\/\/192.168.99.100:80<\/code> (80 \u043f\u043e\u0440\u0442 \u043c\u043e\u0436\u043d\u043e \u0438 \u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c).<\/p>\n<p>  \u0412\u0443\u0430\u043b\u044f, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442!<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/d06\/773\/83a\/d0677383a7c348d0acd00598c7dc0b51.png\" alt=\"alt\"\/><\/p>\n<h4>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0434\u043e\u043a\u0435\u0440 \u043e\u0431\u0440\u0430\u0437<\/h4>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e \u043d\u0435 \u0432\u0441\u0435 \u0442\u0430\u043a \u0433\u043b\u0430\u0434\u043a\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0432 \u0434\u043e\u043a\u0435\u0440\u0435 \u0435\u0441\u0442\u044c \u0438 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438. \u041e\u0434\u0438\u043d \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0439 \u0431\u0443\u043b\u044b\u0436\u043d\u0438\u043a \u044d\u0442\u043e <em>\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 PID 1<\/em> \u0438\u043b\u0438 \u0437\u043e\u0431\u043c\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 <a href=\"https:\/\/habrahabr.ru\/company\/hexlet\/blog\/248519\/\">\u0442\u0443\u0442<\/a>. \u0420\u0435\u0431\u044f\u0442\u0430 \u0438\u0437 phusion(<em>\u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0438 phusion passenger<\/em>) \u043f\u043e\u0437\u0430\u0431\u043e\u0442\u0438\u043b\u0438\u0441\u044c \u043e \u043d\u0430\u0441 \u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043e\u0431\u0440\u0430\u0437 <a href=\"http:\/\/phusion.github.io\/baseimage-docker\/\">phusion\/baseimage<\/a> \u0440\u0435\u0448\u0430\u044e\u0449\u0438\u0439 \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0438 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0437\u0430 \u0441 ASP.NET Core. <\/p>\n<p>  \u041c\u0435\u0442\u043e\u0434\u043e\u043c \u0447\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u0438\u0437 <a href=\"https:\/\/github.com\/aspnet\/aspnet-docker\/blob\/master\/1.0.0-rc1-update1-coreclr\/Dockerfile\">Docker \u0444\u0430\u0439\u043b\u0430<\/a> \u043e\u0442 Microsoft \u043f\u043e\u043b\u0447\u0438\u043c \u0441\u0432\u043e\u0439:<\/p>\n<pre><code>FROM phusion\/baseimage:latest  ENV DNX_VERSION 1.0.0-rc1-update1 ENV DNX_USER_HOME \/opt\/DNX_BRANCH  ENV DNX_RUNTIME_ID ubuntu.14.04-x64  RUN apt-get -qq update &amp;&amp; apt-get -qqy install unzip curl libicu-dev libunwind8 gettext libssl-dev libcurl3-gnutls zlib1g &amp;&amp; rm -rf \/var\/lib\/apt\/lists\/*  RUN curl -sSL https:\/\/raw.githubusercontent.com\/aspnet\/Home\/dev\/dnvminstall.sh | DNX_USER_HOME=$DNX_USER_HOME DNX_BRANCH=v$DNX_VERSION sh RUN bash -c &quot;source $DNX_USER_HOME\/dnvm\/dnvm.sh \\     &amp;&amp; dnvm install $DNX_VERSION -alias default -r coreclr \\     &amp;&amp; dnvm alias default | xargs -i ln -s $DNX_USER_HOME\/runtimes\/{} $DNX_USER_HOME\/runtimes\/default&quot;  RUN LIBUV_VERSION=1.4.2 \\     &amp;&amp; apt-get -qq update \\     &amp;&amp; apt-get -qqy install autoconf automake build-essential libtool \\     &amp;&amp; curl -sSL https:\/\/github.com\/libuv\/libuv\/archive\/v${LIBUV_VERSION}.tar.gz | tar zxfv - -C \/usr\/local\/src \\     &amp;&amp; cd \/usr\/local\/src\/libuv-$LIBUV_VERSION \\     &amp;&amp; sh autogen.sh &amp;&amp; .\/configure &amp;&amp; make &amp;&amp; make install \\     &amp;&amp; rm -rf \/usr\/local\/src\/libuv-$LIBUV_VERSION \\     &amp;&amp; ldconfig \\     &amp;&amp; apt-get -y purge autoconf automake build-essential libtool \\     &amp;&amp; apt-get -y autoremove \\     &amp;&amp; apt-get -y clean \\     &amp;&amp; rm -rf \/var\/lib\/apt\/lists\/*  ENV PATH $PATH:$DNX_USER_HOME\/runtimes\/default\/bin  COPY . \/app WORKDIR \/app RUN [&quot;dnu&quot;, &quot;restore&quot;]  EXPOSE 5004 ENTRYPOINT [&quot;dnx&quot;, &quot;web&quot;] <\/code><\/pre>\n<p>  \u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0430\u043b\u044c \u043d\u0430\u043c \u0443\u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e:<\/p>\n<pre><code>docker build -t aspnetcore-phusion .<\/code><\/pre>\n<p>  <\/p>\n<pre><code>docker run -d -p 80:5004 aspnetcore-phusion<\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u043a\u0430\u043a \u0438 \u044f \u043d\u0435 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u0442\u043e \u0434\u043e\u043a\u0435\u0440 \u0441\u043e\u043e\u0431\u0449\u0438\u0442 \u043d\u0430\u043c \u0447\u0442\u043e 80 \u043f\u043e\u0440\u0442 \u0443\u0436\u0435 \u0437\u0430\u043d\u044f\u0442:<\/p>\n<pre><code>docker: Error response from daemon: failed to create endpoint loving_kowalevski on network bridge: Bind for 0.0.0.0:80 failed: port is already allocated.<\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043d\u0430\u0448 \u0440\u0430\u043d\u0435\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043d\u043e\u0432\u044b\u0439<\/p>\n<pre><code>docker stop loving_kowalevski docker run -d -p 50:5004 aspnetcore-phusion <\/code><\/pre>\n<p>  \u041a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0434\u043e\u043a\u0435\u0440 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0435\u043c\u0443 \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u043e\u0435 \u0438\u043c\u044f. \u041a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u2014 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/github.com\/docker\/docker\/blob\/master\/pkg\/namesgenerator\/names-generator.go\">\u0442\u0443\u0442<\/a>.<\/p>\n<h4>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0439 \u043e\u0431\u0437\u043e\u0440\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043f\u0430\u0440\u0443 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0441 \u043f\u0440\u043e\u0441\u0442\u044b\u043c ASP.NET Core \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c. \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0431\u043e\u043b\u044c\u0448\u0435. <\/p>\n<p>  \u041d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f ASP.NET Core \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u043d\u0430 coreclr \u043f\u043e\u043a\u0430 \u0435\u0449\u0435 \u043d\u0435 production ready, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0435 \u0432\u0441\u0435 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435 \u043d\u0430\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u043a\u0435 \u043c\u043e\u0433\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043d\u0430 coreclr. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f <strong>mongodb<\/strong> \u0435\u0449\u0435 \u043d\u0435\u0442 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430, \u0430 <strong>autofac<\/strong> \u0435\u0449\u0435 \u0432 \u0430\u043b\u044c\u0444\u0435. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432\u044b\u0445\u043e\u0434 \u0432 <strong>mono<\/strong>, \u043d\u043e \u043c\u044b \u0442\u0443\u0442 \u0441 \u0432\u0430\u043c\u0438 \u043f\u0440\u043e <strong>coreclr<\/strong>. \u041e\u0434\u043d\u0430\u043a\u043e \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043f\u043e\u0440\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f, \u0438 \u0432 \u0441\u043a\u043e\u0440\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 ASP.NET Core.<\/p>\n<h4>\u0410\u0432\u0442\u043e\u0440\u0430\u043c<\/h4>\n<p>  \u0414\u0440\u0443\u0437\u044c\u044f, \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043a\u043e\u043b\u043e\u043d\u043a\u0443 \u0441\u0432\u043e\u0438\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u043c, \u0442\u043e \u043f\u0440\u043e\u0448\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043c\u043d\u0435 \u043d\u0430 <a href=\"mailto:vyunev@microsoft.com\">vyunev@microsoft.com<\/a> \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0441\u0443\u0434\u0438\u0442\u044c \u0432\u0441\u0435 \u0434\u0435\u0442\u0430\u043b\u0438. \u041c\u044b \u0440\u0430\u0437\u044b\u0441\u043a\u0438\u0432\u0430\u0435\u043c \u0430\u0432\u0442\u043e\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e ASP.NET \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0442\u0435\u043c\u044b.<\/p>\n<p>  <img decoding=\"async\" align=\"right\" width=\"200\" src=\"https:\/\/habrastorage.org\/files\/476\/344\/045\/4763440451c24874a21d0f2cd0934e9e.png\"\/><\/p>\n<h3>\u041e\u0431 \u0430\u0432\u0442\u043e\u0440\u0435<\/h3>\n<p>  <b>\u0411\u043e\u0431\u0438\u043a \u0412\u044f\u0447\u0435\u0441\u043b\u0430\u0432 \u0411\u043e\u0440\u0438\u0441\u043e\u0432\u0438\u0447,<\/b><br \/>  \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a .NET \u0432 Radario<\/p>\n<p>  \u041c\u043e\u043b\u043e\u0434\u043e\u0439 .Net \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442, \u0441 3 \u0433\u043e\u0434\u0430\u043c\u0438 \u043e\u043f\u044b\u0442\u0430. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043d\u0430 ASP.NET MVC, \u0430\u0432\u0442\u043e\u0440 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0434\u043b\u044f Windows \u0438 Windows phone.<\/p>\n<h3>\u0410\u043d\u043e\u043d\u0441! \u0413\u043b\u0443\u0431\u043e\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432 \u043d\u0430 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 DevCon 2016<\/h3>\n<p>  <img decoding=\"async\" src=\"http:\/\/www.msdevcon.ru\/files\/images\/menu-logo.png?xid=1681940595\" alt=\"image\"\/><\/p>\n<p>  \u041c\u044b \u0440\u0430\u0434\u044b \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u043e \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u0433\u043b\u0443\u0431\u043e\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432-\u043a\u0443\u0440\u0441\u0430 \u043f\u043e ASP.NET Core \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 <a href=\"https:\/\/events.techdays.ru\/DevCon\/2016\/registration\">\u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 DevCon 2016<\/a>. \u042d\u0442\u043e\u0442 \u043a\u0443\u0440\u0441 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0434\u0435\u043d\u044c \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u0438 \u0437\u0430\u0439\u043c\u0435\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u0435\u043d\u044c \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 6 \u0447\u0430\u0441\u043e\u0432.<\/p>\n<p>  <strong>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 ASP.NET 5<\/strong><br \/>  \u0412 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u0442\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u0430 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043f\u0440\u0438\u043c\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0438 \u043f\u043e\u043b\u043d\u043e\u043c \u043f\u0440\u0438\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u043f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u0438\u0438, \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u043e\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u043d\u043e\u0432\u0435\u0439\u0448\u0435\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 ASP.NET 5. \u041c\u044b \u043f\u0440\u043e\u0439\u0434\u0435\u043c \u0432\u0435\u0441\u044c \u043f\u0443\u0442\u044c \u043e\u0442 \u043d\u0443\u043b\u044f \u0434\u043e \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u043e\u0433\u043e \u0432 \u043e\u0431\u043b\u0430\u043a\u0435. \u0418 \u043f\u043e \u0434\u043e\u0440\u043e\u0433\u0435 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u0441\u043c\u043e\u0433\u0443\u0442 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 ASP.NET, \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u044b\u043c\u0438 \u0438 NoSQL \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Entity Framework 7, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435 MVC, \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0438 \u043c\u043e\u0434\u0435\u043b\u0435\u0439, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439 \u0438 \u0431\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0438, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 REST API, \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Git \u0438 Visual Studio Online, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Azure \u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 Docker. \u0412 \u043a\u043e\u043d\u0446\u0435 \u043f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u0438\u044f \u0432\u0441\u0435 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043f\u0440\u043e\u0439\u0434\u0443\u0442 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u0438\u0435 \u0438 \u0441\u0442\u0430\u043d\u0443\u0442 \u0437\u0430\u0441\u043b\u0443\u0436\u0435\u043d\u043d\u044b\u043c\u0438 \u0440\u044b\u0446\u0430\u0440\u044f\u043c\u0438 ASP.NET.<\/p>\n<p>  \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043d\u0430 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044e DevCon 2016 \u0443\u0436\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0430! <a href=\"https:\/\/events.techdays.ru\/DevCon\/2016\/registration\">\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044c \u0437\u0434\u0435\u0441\u044c<\/a>.          \t<\/p>\n<div class=\"polling\">\n<form action=\"\/json\/polling\/\" class=\"poll\" method=\"post\">\n<div class=\"poll_title\">\u0412\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u0442\u0435\u043c\u0430 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438?<\/div>\n<p>  \t\t<input type=\"hidden\" name=\"post_id\" value=\"278173\"\/> \t\t<input type=\"hidden\" name=\"polling_question_id\" value=\"14669\"\/>  \t\t<\/p>\n<table class=\"answer\">\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"radio\" id=\"vv71683\" \t\t\t\t\t\tclass=\"radio js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"71683\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv71683\">\u0414\u0430, \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"radio\" id=\"vv71685\" \t\t\t\t\t\tclass=\"radio js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"71685\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv71685\">\u041d\u0435 \u043e\u0447\u0435\u043d\u044c<\/label> \t\t\t\t<\/td>\n<\/tr>\n<\/table>\n<p class=\"total\">\u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b 1 \u0447\u0435\u043b\u043e\u0432\u0435\u043a. \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043d\u0435\u0442.<\/p>\n<\/p><\/form>\n<p class=\"for_users_only_msg\">\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a href=\"https:\/\/habrahabr.ru\/auth\/login\/\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/p>\n<\/p><\/div>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/278173\/\"> https:\/\/habrahabr.ru\/post\/278173\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<br \/>\n<blockquote><p><i>\u041c\u044b \u0440\u0430\u0434\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u0430\u043c\u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u0438\u0437 \u0441\u0435\u0440\u0438\u0438 \u0441\u0442\u0430\u0442\u0435\u0439 \u043e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 ASP.NET Core (\u0440\u0430\u043d\u0435\u0435 ASP.NET 5). \u0412 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0412\u044f\u0447\u0435\u0441\u043b\u0430\u0432 \u0411\u043e\u0431\u0438\u043a \u2014 .NET-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438\u0437 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Radario, \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442 \u0441\u0432\u043e\u0439 \u0440\u0430\u0441\u0441\u043a\u0430\u0437 \u043e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u043e\u043c \u043f\u0440\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 ASP.NET \u0441 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438 Docker. \u0412\u0441\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0446\u0438\u043a\u043b\u0430 \u0432\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 \u0442\u0443\u0442 <a href=\"https:\/\/habrahabr.ru\/search\/?q=%5B%23aspnetcolumn%5D&amp;target_type=posts\">#aspnetcolumn<\/a> \u2014 \u0412\u043b\u0430\u0434\u0438\u043c\u0438\u0440 \u042e\u043d\u0435\u0432<\/i><\/p><\/blockquote>\n<p>  <img decoding=\"async\" src=\"http:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/7\/79\/Docker_%28container_engine%29_logo.png\/250px-Docker_%28container_engine%29_logo.png\" alt=\"image\"\/><\/p>\n<p>  \u041a\u0430\u043c \u043d\u0430\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, ASP.NET Core, \u043c\u043e\u0436\u043d\u043e(\u0438 \u0434\u0430\u0436\u0435 \u043d\u0443\u0436\u043d\u043e) \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 Windows, \u043d\u043e \u0442\u0430\u043a \u0436\u0435 \u043d\u0430 Mac \u0438 Linux. \u0427\u0442\u043e \u044d\u0442\u043e \u043d\u0430\u043c \u0434\u0430\u0435\u0442? \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0435\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u043c\u0438 \u0432 docker \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0438 \u0443\u0434\u043e\u0431\u043d\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445\\\u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0441\u0440\u0435\u0434\u0430\u0445. \u041c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043e \u0442\u043e\u043c <a href=\"https:\/\/habrahabr.ru\/post\/253877\/\">\u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 docker<\/a> \u0438 \u043a\u0430\u043a \u0435\u0433\u043e <a href=\"https:\/\/docs.docker.com\/engine\/installation\/\">\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c<\/a>, \u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437 \u0441 ASP.NET Core.<\/p>\n<h4>\u041f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0435\u043c \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0432\u044b\u0431\u043e\u0440 \u043d\u0430 \u0447\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0430\u0448\u0435 \u043f\u0435\u0440\u0432\u043e\u0435 ASP.NET Core \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435: \u043d\u0430 <strong>mono<\/strong> \u0438\u043b\u0438 \u043d\u0430 <strong>coreclr<\/strong>. \u042f \u0432\u044b\u0431\u0435\u0440\u0443 \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0434\u043d\u043e, \u0441\u0442\u0438\u043b\u044c\u043d\u043e, \u043c\u043e\u043b\u043e\u0434\u0435\u0436\u043d\u043e. <\/p>\n<p>  \u041f\u043e \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u043c \u043f\u0443\u0441\u0442\u043e\u0439 ASP.NET Core \u043f\u0440\u043e\u0435\u043a\u0442:  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-275131","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/275131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=275131"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/275131\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=275131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=275131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=275131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}