Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Deploying aspnet core web app on a windowservercore image

$
0
0

Hi, I'm running on Windows Server 2016 Standard Evaluation version (Build 14393.rs1_release.161220-1747). Its enabled for containers and i'm able to run windows server core image on my machine from command prompt. while I try to install docker client tools, they fail installation (error msg: This version of docker requires windows 10pro, enterprise or eucation edition with a minimum build number of 10586).

I have created a webapp using aspnet core 1.1 and enabled docker support. The docker file that comes by default has image config of microsoft/aspnetcore:1.0 (which is over linux OS). While I try to run my app with this docker file, it displays an error message ("Service 'webapplication3' failed to build: image operating system "linux" cannot be used on this platform").

Since my machine was able to run windowsservercore docker image i modified dockerfile to use it, however the app again fails deployment with the error message "webapplication3  Cannot create container for service webapplication3: invalid volume spec "/clrdbg": invalid volume specification: '\clrdbg'". I'm guessing this is because aspnetcore app is expecting a linux image path and since my running image is windowsservercore its failing. 

Can anyone suggest here?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>