Trying out Container Tools in Visual Studio 2019
I've been doing more and more work in Docker containers (rather than on the metal) and I noticed recently that Visual Studio 2019 added updated support for containers within VS itself so gave it a try.
When you make a new ASP.NET Core web app, make sure to check "enable docker support" when you click create.
You'll need Docker for Windows first, of course. I'm using the new Docker Desktop for Windows that uses WSL2 for its backend rather than a utility VM that's visible in Hyper-V.
Now, within Visual Studio 2019, go to the View Menu and click "Other Windows | Containers." I like to dock this new tool window at the bottom.
Note in my screenshot above I'm starting up SQL Server on Linux within a container. This window is fantastic and includes basically everything you'd want to know and see when developing within a container.
You can see the ports exposed, the container's local file system, the environment, and the logs as they happen.
You can even right-click on a container and get a Terminal Window into that running container if you like:
You can also see https://aka.ms/containerfastmode to understand how Visual Studio uses your multistage Dockerfile (like the one below) to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
WORKDIR /src
COPY ["WebApplication1/WebApplication1.csproj", "WebApplication1/"]
RUN dotnet restore "WebApplication1/WebApplication1.csproj"
COPY . .
WORKDIR "/src/WebApplication1"
RUN dotnet build "WebApplication1.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "WebApplication1.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "WebApplication1.dll"]
Go read about the new Container Tools in Visual Studio. Chances are you have a dockerfile in your project but you haven't brought this Containers Tool Window out to play!
Sponsor: Organizations that scan their code more than 300 times a year have 5x less security debt than those with sporadic testing processes. The 2019 SOSS X report from Veracode digs into this data—and more.
About Scott
Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.
About Newsletter
How I did it-> Switch easily between virtual box and HyperV with BCDEdit Boot entry from Scott Hanselman. :-)
Also, Visual Studio Code has a REALLY nice add-in for docker (ms-azuretools.vscode-docker). I use this to manage my containers and images within Ubuntu.
keep it up.
even a weblog from start to end.
https://writeanessayforme.info/692-dissertation-sol-gel.html
buy my essay
buy my essay
https://writeanessayforme.info/5102-online-essay-service.html https://writeanessayforme.info/5608-chicago-paper-heading.html
Glance complicated to more brought agreeable from you!
By the way, how can we be in contact?
better! Reading through this article reminds me of my previous roommate!
He continually kept talking about this. I most certainly will
forward this post to him. Pretty sure he'll have a very good read.
Thanks for sharing!
genuinely awesome for people experience, well,
keep up the good wok fellows.
https://admissionessaywritingservice.com
essay writers
essay writers
https://admissionessaywritingservice.com https://admissionessaywritingservice.com
genuinely good funny material too.
technological globe everything is accessible on net?
of blogging.
this website conations actually fastidious funny information too.
https://orderessaycheap.com/
buy essay writing
buy essay writing
https://orderessaycheap.com https://orderessaycheap.com
with friends.
https://writingmypaper.info
essay writing websites
essay writing websites
https://persuasiveessays.info https://collegeapplicationessaywritingservice.info
weblog and I'm inspired! Extremely useful info particularly the final section :
) I care for such info much. I was seeking this particullar information for a long time.
Thanks and best of luck.
https://researchpaperorder.com
essay writing websites
essay writing websites
https://researchpaperorder.com
bookmarked it. Money and freedom is the best wayy to change, maay
you bee rich and continue to guide others.
https://writingmypaper.com
best essay writing service review
best essay writing service review
https://writingmypaper.com
the website, that's what this sute is providing.
https://helpassignmentwritingservice.info
research papers
research papers
https://collegeapplicationessaywritingservice.info https://writingmypaper.info
thiis weblog consists of awesome and actually good data for readers.
https://highqualitywritingservice.com
custom ezsay writing service reviews
custom essay writing service reviews
https://highqualitywritingservice.com
Is anyone else having this problem or is it a priblem on my end?
I'll check back later and see if the problem stoll exists.
https://writemycustompaper.com/
help with an essay
help with an essay
https://writemycustompaper.com/ https://writemycustompaper.com/
websites? I have a blog based on the same ideas you discuss and would lpve to have you
sharde some stories/information. I know my visitors would
enjoy your work. If you are even rmotely interested, feel free to shoot me
an e-mail.
https://servicethesis.com
write my paper for me
write myy paper for me
https://servicethesis.com/ https://servicethesis.com/
you are not understanding something completely,
except this aticle offers nice understanding even.
https://essaysonservice.com/
essay writer websites
essay writer websites
https://essaysonservice.com/ https://essaysonservice.com/
if you knew of any widgets I could add to my blog that automatically
twert my newest twitter updates. I've been looking for a
plug-in like this for quite some time and was
hoping maybe you would have some experience with something likke this.
Please let mee know if yoou run into anything. I truly enjoy
reading your blog and I look forward to your new updates.
https://professionalessaywritingservice.com
buy essay online safe
buy essaay oonline safe
https://professionalessaywritingservice.com
is good, thats why i have read it completely
too.
Your blog provided us beneficial information to work on. You have
done a extraordinary job!
Is going to be back incessantly to investigate cross-check new posts
site are genuinely awesome for people experience, well, keep up
the nice work fellows.
take a look at the spelling on several of your posts.
Several of them are rife with spelling problems and I to find
it very bothersome to tell the reality then again I will definitely come back
again.
ask. Does building a well-established website like yours require
a massive mount work? I'm completely new to running a blog
but I do write in my diary everyday. I'd like to start a blog so I can share my experience and feelings online.
Please let me know if yoou have anyy kind of ideas or tips ffor brand new
aspiring blog owners. Thankyou!
https://bestessaywritingservice.info/
write papers for me
https://bestessaywritingservice.info/help-writing-thesis-statement.html
existing here at this website, thanks admin of this web page.
https://australianessaywritingservice.info/
how to write an essay
how to write an essay
https://australianessaywritingservice.info/mental-disorders-essay.html https://australianessaywritingservice.info/academic-and-business-writing-similarities.html
Is thhere any way you can remove me from tgat service? Thanks a lot!
https://buycustomessay.info/
writing and essay
https://buycustomessay.info/ https://buycustomessay.info/write-that-essay.html
Tools in Vsual Studio 2019 - Scott Hanselman's Blog <Liked it!
https://persuasiveessays.info/esl-argumentative-essay.html
writing a paper
writing a paper
https://persuasiveessays.info/research-paper-on-business-management.html https://persuasiveessays.info/how-to-stay-on-top-of-homework.html
Keep up the wonderful works guys I've added you guys to my blogroll.
nowadays. I reaply appreciate individuals like
you! Take care!!
https://buyessaysearch.com
help me write an essay
help me write an essay
https://buyessaysearch.com https://buyessaysearch.com
Thank you a lot and I'm having a look ahead to contact you.
Will you please drop me a mail?
https://toppaperwritinghelp.com
write my papewr for me
write my paper for me
https://toppaperwritinghelp.com https://toppaperwritinghelp.com
you may be a great author. I will make certain to bookmark your
blog and will come back down the road. I want to encourage you
to ultimately continue your great job, have a nice weekend!
https://buyessayonlinecheap.info/cheap-writing-service.html
online writing paper
online writing paper
https://buyessayonlinecheap.info/research-writing-service.html https://buyessayonlinecheap.info/essay-on-history.html
You're so intelligent. You understand thus considerably when it comes to this matter, produced me personally imagine it
from numerous varied angles. Its like women and men are
not interested except it's something to do with Woman gaga!
Your own stuffs excellent. At all times handle it up!
a look at once more here frequently. I am moderately certain I will be told a lot of new stuff proper right here!
Good luck for the following!
https://writeanessayforme.info/1788-dissertation-report.html
custom essay writing
custom essay writing
https://writeanessayforme.info/6882-cheap-custom-writing.html
I'll bookmark your weblog and check again here regularly.
I'm quite certain I will learn lots of new stuff right here!
Best of luck for the next!
https://servicethesis.info/dissertation-services.html
business esszy writing service
businessessay writing service
https://servicethesis.info https://servicethesis.info/research-paper-for-sale.html
& theme. Did you build thiss amazing site yourself?
Pleae reply back as I'm planning to create mmy own blog and
wnt to learn where you gott this from or what thhe theme is called.
Many thanks!
https://essaywritingtld.com
essay writing service canada
essay writing service canada
https://essaywritingtld.com https://essaywritingtld.com
any other website which give suuch stuff in quality?
https://buyessayscc.com
essay helper
essay helper
https://buyessayscc.com https://buyessayscc.com
article. But wanna remark on some general things, The site style is wonderful, the articles is really nice : D.Good job, cheers
https://mosspilic.medium.com/essay-in-spanish-8f66b282fc09
college essay wrriting service reviews
college esxay writing service reviews
https://issiahe2rx6lr7z.medium.com/ged-writing-practice-test-essay-16ddc0264748 https://nellieuf7s.medium.com/federalist-essay-number-10-explains-how-a-republic-can-bc34865d62b5
Stay up the grreat work! You realize, a lot of people are looking round for this information, you could help them greatly.
https://buyessayprices.com
affordable papwr writer
affordable paper writer
https://buyessayprices.com
reason that tis this site conations truly nice funny data too.
https://essayhelpforall.com/
paper help
paper help
https://essayhelpforall.com/ https://essayhelpforall.com/
Justt wanted to say keep up the good work!
https://helpwriting.info/buying-essays-safe.html
essay writing services
essay writing services
https://helpwriting.info/descriptive-essay-conclusion.html https://helpwriting.info/illustrative-paragraph.html
You have some really good articles and I feel I would
be a good asset. If yoou ever want to take some
off the load off, I'd love to write sme content for
your blog in exchane foor a link back to mine. Please blat me an e-mail iff
interested. Kudos!
https://essayserviceuk.info
buy essay paper
buy essay paper
https://essayserviceuk.info/how-to-write-lists.html
protect against hackers? I'm kinda paranoid about losing
everything I've worked hard on. Any recommendations?
https://onlineessayforyou.com
best websites to write essays
best websites to write essays
https://onlineessayforyou.com https://onlineessayforyou.com
your efforts and I will be waiting for youhr further ost thank you onche again.
https://buyessayonlineforcheap.com
my essay writer
my essay writer
https://essaypaperwritingservice.com https://writepapersforme.com
you just shared this useful info with us. Please keep us informed like this.
Thanks for sharing.
https://essaypaperwritingservice.com/
professional essay writing service
professional essay writiing service
https://essaypaperwritingservice.com
this write-up very compelled me to try and do it!
Your writing style has been amazed me. Thanks, quite great post.
https://allbestessaywritingservice.com
buy essay wrriting service
buy essay writing service
https://allbestessaywritingservice.com https://allbestessaywritingservice.com
on building up new weblog.
https://essayserviceusukua.com
professional resume writing service
professional resume writing service
https://essayserviceusukua.com
Comments are closed.