.NET 8 .🚀🔥: Integrating Docker with a .NET Web API - A Step-by-Step Guide

  Рет қаралды 54,428

Mohamad Lawand

Mohamad Lawand

Күн бұрын

Welcome to our comprehensive tutorial where we delve into the world of containerization, focusing on Docker and its integration with a .NET Web API. Whether you're new to Docker or looking to enhance your .NET development skills, this video is tailor-made for you.
What You'll Learn:
Docker Basics: An introduction to Docker, its importance in modern software development, and the basics of containerization.
Setting Up Docker: A guide on installing and configuring Docker on your system.
Creating a .NET Web API: Step-by-step instructions on building a basic .NET Web API from scratch.
Dockerizing .NET Web API: Demonstrating how to containerize your .NET Web API using Docker, including writing Dockerfiles and understanding Docker commands.
Best Practices for Docker and .NET Integration: Tips and tricks for efficient Docker usage with .NET applications.
Testing and Deployment: How to test your Dockerized .NET Web API and deploy it, ensuring seamless integration and deployment.
Who Should Watch:
Developers interested in containerization and Docker.
.NET developers looking to integrate Docker into their workflow.
Software engineers and IT professionals exploring deployment strategies.
Key Takeaways:
A solid understanding of Docker and its role in containerization.
Practical skills in integrating Docker with .NET Web API.
Improved competency in deploying and managing containerized applications.
Support me on Patreon to access the source code:
/ mohamadlawand
Intro to Aspire: • .NET 8 .🚀🔥: Amazing C...
Let us connect:
🌍 My website - mohamadlawand.com
📸 Instagram - / mohamadlawand087
🐦 Twitter - / moe23
♯ Github - github.com/moh...
🎫 LinkedIn - / mlawand
💥 LinkTree - linktr.ee/moha...
Discord - / discord
Gear I use (affiliate link): amzn.to/3EbT8Jw
Support my work:
/ mohamadlawand
www.buymeacoff...
Hire Me:
transactions.s...
WHO AM I:
I'm Mohamad, a Enterprise Architect working in Manchester, UK. I make videos about web, cloud, desktop and mobile development.
GET IN TOUCH:
If you’d like to talk, I’d love to hear from you. Tweeting @moe23 directly will be the quickest way to get a response, but if your question is very long, feel free to email me at hello@mohamadlawand.com.
#dotnet #docker #containers

Пікірлер: 57
@guy9800
@guy9800 9 ай бұрын
I like how this covers the essential base points needed without being too specific to a certain application or application type. Thank you. More videos like this style are needed out there.
@larissamxl
@larissamxl 7 ай бұрын
Explicação rápida e pratica, eu estava com problema na configuração da porta do meu docker e consegui resolver meu problema com esse vídeo, obriga a você e ao chatgpt! Quick and practical explanation, I was having a problem configuring my docker port and I was able to solve this problem by watching this video, thanks to you and chatgpt!
@azizhmidi5835
@azizhmidi5835 8 ай бұрын
You're a gift to humanity thank you so much Mohamad ♥♥♥
@codewithirshad
@codewithirshad Жыл бұрын
Much awaited video 🎉 thanks again
@Maerthyr
@Maerthyr Жыл бұрын
Very nice and up to date content. Thank you !
@DinidiDeeds
@DinidiDeeds Жыл бұрын
All work perfeckly, but when i try to acces to page , i get error. not page found. swagger dont appear. how i can fix it please
@parkerwarner8688
@parkerwarner8688 11 ай бұрын
I think he said this is a production build so you wouldn’t have access to swagger. I think you could change this by changing from “Release” to “Debug” or in the application you could allow swagger in prod and not just dev? Not 100% though
@mwagihsobhy
@mwagihsobhy 6 ай бұрын
I have same problem. Did you find solution to browse using local host then the mapped port??
@hamzagorcevic8443
@hamzagorcevic8443 4 ай бұрын
if (app.Environment.IsDevelopment()) { app.UseSwagger(); app.UseSwaggerUI(); } , you probably have something like this in your code, its why is swagger showing only in development mode
@DanMalm71X
@DanMalm71X 2 ай бұрын
Great tutorial. Really easy to follow along and you did not speak or type too fast.
@MohamadLawand
@MohamadLawand 2 ай бұрын
Thank you
@rajneeshrocks2977
@rajneeshrocks2977 Жыл бұрын
I am not able to access .net 8 webapi from docker.I did the same but not able to access. thanks for sharing
@gabrielvalluis5288
@gabrielvalluis5288 13 күн бұрын
Try downgrading it
@Jedi.Trader
@Jedi.Trader Ай бұрын
Which repo did you use? I am having trouble getting the UI up and running with swagger in the container from microsoft. is it possible?
@derrickc2823
@derrickc2823 3 ай бұрын
Great tutorial!
@sametsahin6193
@sametsahin6193 Жыл бұрын
Such a great video thanks!
@OzoezeUtobonny
@OzoezeUtobonny 10 ай бұрын
I love all your tutorials, you have helped me really greatly in my career as a developer. Please how can i get closer and more in touch with you?
@sanyogvlog2204
@sanyogvlog2204 2 ай бұрын
Great work 👌👌👌
@MohamadLawand
@MohamadLawand 2 ай бұрын
Thank you
@tonym5857
@tonym5857 10 ай бұрын
Thank you....
@nematullahhussaini1518
@nematullahhussaini1518 4 ай бұрын
How about connecting the local image to the local Db to see getting data from db in browser? is there any way?
@nouchance
@nouchance 3 ай бұрын
Thank you very much for the tutorials! I wanted to ask you: I want to buy a MacBook M1 Pro 16/512 for .NET development. Can Macs with M1/M2 chips have some compatibility issues, since some containers or images may not support ARM architecture?
@robypeng
@robypeng 11 ай бұрын
Hi Mohamad, would you mind to give us a tutorial on how to deploy any .NET application using Podman, instead of Docker? As we know, Docker Desktop is not fully free and I see Podman is on a rising trend these days.
@sandanuwan4441
@sandanuwan4441 Жыл бұрын
Thanks for the video and its very helpfull. I have one question to ask. I created simple .NET API using 8.0 (selected https when create the app) and created the docker file and its perfectly working with http. but when i try with https it was not working. Is there any reason no working with the HTTPS.
@MohamadLawand
@MohamadLawand Жыл бұрын
It requires additional configuration for HTTPS, it will not work directly. You need to have certificates configured check the following video Les go through it perfectly kzbin.info/www/bejne/opTEdXeuf9tlbJI
@sandanuwan4441
@sandanuwan4441 Жыл бұрын
Thanks @@MohamadLawand for the support
@alaael-greatly5200
@alaael-greatly5200 Жыл бұрын
Hi Mohamad, on a previous video you said that you should have the encryption Key for jwt removed from AppSettings.json and put in Key Vault in Azure, I have a local project with docker-compose and I want to do that exactly on azure, to get the encryption key and connection string for the database from key vault, could you please do a video on that? Thanks for the effort ❤
@MohamadLawand
@MohamadLawand Жыл бұрын
Will look into it :)
@alaael-greatly5200
@alaael-greatly5200 Жыл бұрын
Great, thanks a lot. I really enjoy your videos and appreciate your effort :)@@MohamadLawand
@mohammaditani9249
@mohammaditani9249 3 ай бұрын
Thx Man ❤
@smeta72
@smeta72 9 ай бұрын
Thanks bro. Great work!
@SantoshAcharya-pl5bb
@SantoshAcharya-pl5bb 3 ай бұрын
Thanks for a video, is it possible to run the dotnet ef migrations inside a docker container, if possible can someone help me with this.
@willgordon5737
@willgordon5737 5 ай бұрын
Salaam brother amazing content i subscribed to you
@raagediriye9229
@raagediriye9229 Жыл бұрын
Great content
@mariomandzukic8676
@mariomandzukic8676 8 ай бұрын
thank you legend!
@zmoo759
@zmoo759 Жыл бұрын
good video😀, thank you
@float128
@float128 8 ай бұрын
Can you show if your app was running after executing docker run. I did the same and app is not running
@mohammedabdalla6452
@mohammedabdalla6452 Жыл бұрын
Thanks, can you make another version and add database to docker
@viniciuscarvalho5029
@viniciuscarvalho5029 9 ай бұрын
Thank you.
@dLocalFood
@dLocalFood 4 ай бұрын
Kindly help for below error error CS5001: Program does not contain a static 'Main' method suitable for an entry point -- getting error while docker build
@rahmansaleh
@rahmansaleh 4 ай бұрын
Move your Dockerfile on folder up to your solution folder and edit the different paths in the Dockerfile
@muhammadshoaibkhan8957
@muhammadshoaibkhan8957 11 ай бұрын
how i can use .yml file with my docker image please make part2 on that video
@akashrokade12
@akashrokade12 Жыл бұрын
can you explain more about docker commands
@ShaneBowers-t6x
@ShaneBowers-t6x 11 ай бұрын
Will you please display the full lines for line15, "RUN dotnet build" and line 19 "RUN dotnet publish" in your Dockerfile? I'm getting an error during the build the "RUN dotnet build" task that says, "dotnet build "PersonnelModule.RestApi/PersonnelModule.RestApi.csproj" -c $BUILD_CONFIGURATION -o /app/build". Please advise. Thank you!
@SILASGAH
@SILASGAH 11 ай бұрын
RUN dotnet publish "API.csproj" -c $BUILD_CONFIGURATION -o /app/publish
@firmanjamal2871
@firmanjamal2871 9 ай бұрын
How do I apply EF Migrations and DB Update on the docker?
@Selconag
@Selconag 11 ай бұрын
Bro I like your tutorial but your website is down I was curious to check it.
@MohamadLawand
@MohamadLawand 11 ай бұрын
www.mohamadlawand.com/#home
@codewithirshad
@codewithirshad Жыл бұрын
It would nice if you add docker compose for same project.
@mz1710
@mz1710 Жыл бұрын
22mins 4 seconds.. just saying 😂 good video thanks.
@khoao5799
@khoao5799 8 ай бұрын
how to using swagger in Docker ?
@davisdimalen3912
@davisdimalen3912 11 ай бұрын
do you have a copy of your Dockerfile?
@iel6165
@iel6165 3 күн бұрын
basically autogenerated code if to use visual studio or rider, wasted 20 minutes
Сигма бой не стал морожкой
00:30
КРУТОЙ ПАПА на
Рет қаралды 10 МЛН
пришла на ДР без подарка // EVA mash
01:25
EVA mash
Рет қаралды 3,3 МЛН
Docker Crash Course for Absolute Beginners [NEW]
1:07:39
TechWorld with Nana
Рет қаралды 2 МЛН
Dockerize Your .NET Application in 5 Minutes!
7:42
Amichai Mantinband
Рет қаралды 23 М.
.NET 7  💥  - Deploy .NET Apps to Kubernetes
51:38
Mohamad Lawand
Рет қаралды 24 М.
Docker Compose with .NET 8, PostgreSQL, and Redis (step by step)
13:41
Milan Jovanović
Рет қаралды 67 М.
.NET 6 - Message Broker with RabbitMQ 🐰🐰🐰
1:00:14
Mohamad Lawand
Рет қаралды 57 М.
Docker с 0 до 100%. Всё, что нужно знать.
5:08:24
Сигма бой не стал морожкой
00:30
КРУТОЙ ПАПА на
Рет қаралды 10 МЛН