Docker Layers and Multistage Builds | Docker Optimization | Reduce Layer Size
Вставка
- Опубліковано 14 лип 2024
- In this video, we will explain one of the docker best practices - multistage builds. We will start by briefly explaining what is dockerfile, then dive into how dockerfile layers work. Then we will talk about container image size optimization techniques including multistage builds.
Timestamps:
00:00 Dockerfile
00:54 Docker Layers
03:21 Image Optimization
04:51 Multistage Builds
*Connect with me*
📺Please subscribe for more awesome videos: / @cloudwithraj
🐦Follow me on twitter: / cloudwithraj
🖼Follow me in Facebook for tips, tricks, behind the scene pictures, and personal stories: / cloudwithraj
🏢Connect with me in LinkedIN: / rajdeep-sa-at-aws
👩🎓**My Courses - Message me at Twitter for discount coupons**
Discounted Link for my Kubernetes on EKS course: www.udemy.com/course/rocking-...
Discounted Link for my Serverless Course: www.udemy.com/course/aws-serv...
Discounted Link for my CloudFormation, CDK with Devops, Interview Guide Course: www.udemy.com/course/rocking-...
#DockerMultistage #DockerLayers #DockerBestPractices - Наука та технологія
crystal clear the purpose of mutli stage . big thank you 🙏
Finally I got the point of multistage builds
Finally go the simplified version of multi stage docker explained 😊 . Thanks a lot for enriching us with this knowledge.
Glad it was helpful!
Thanks for the video, finally the concept of multi stage build is clear to me.
Wonderful explaniation !!!
WOW! That was amazing, thanks!
Glad you liked it!
very well explained, thank you for making this video :)
Glad it was helpful!
Best explanation I have ever seen. Keep making such good tech content sir. Great job :)
Thank you Nagdeep
Thank you Raj for this video. it is really helpful.
You are most welcome Irfan
Great explanations.
Glad it was helpful!
awesome explanation by you
thank you good information~!
Thanks Raj
thank you so much, it was pretty good explanation
Glad it helped David!
Best explanation sir ! All others are confusing
Tq Raj👍
you are amazing man
I got this question in interview, I did not answered. Thank you bro.
Now you are ready for this in the next interview A B :)
Thank you! love your explanation...susbscribed!
Awesome, thank you!
Excellent explanation!
Thanks goliafffff!
To the point Explanation!
But can you tell me what goes behind the scenes in case of multi-stage builds? Are two containers created for building the image and then the first one is removed, and then a new containers spins up for the second stage copies the artifact from the first stage, creates the image removes the container?
pls correct me if i am wrong!
I was expecting you to implement the multi stage build for the first python Dockerfile you used to create an image of size 893MB. Could you do the multi stage build for that Dockerfile?
exactly
Why we need to copy only requirement at line 8 and we copy all folders in project right?
Hello Guys and Gals :)
👊
Hi Raj, do you have the files user in this video's available on Git please?
Will check if I still have'em and upload to Git and let you know
@@cloudwithraj hi, any joy with the files please?
intially you shown for python code. how to achive this using this way ?