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
  • Наука та технологія

КОМЕНТАРІ • 40

  • @abhigets
    @abhigets 5 місяців тому +1

    crystal clear the purpose of mutli stage . big thank you 🙏

  • @amour_armour
    @amour_armour Рік тому +1

    Finally I got the point of multistage builds

  • @soumyadipchatterjee2267
    @soumyadipchatterjee2267 5 місяців тому

    Finally go the simplified version of multi stage docker explained 😊 . Thanks a lot for enriching us with this knowledge.

  • @uzmashafi4542
    @uzmashafi4542 8 місяців тому

    Thanks for the video, finally the concept of multi stage build is clear to me.

  • @dileepnagendra8199
    @dileepnagendra8199 10 місяців тому +1

    Wonderful explaniation !!!

  • @mJee245
    @mJee245 2 роки тому

    WOW! That was amazing, thanks!

  • @jessearanki1400
    @jessearanki1400 3 роки тому +1

    very well explained, thank you for making this video :)

  • @nagdeepgk6033
    @nagdeepgk6033 2 роки тому +3

    Best explanation I have ever seen. Keep making such good tech content sir. Great job :)

  • @irfanansari6448
    @irfanansari6448 3 роки тому

    Thank you Raj for this video. it is really helpful.

  • @francoislepron2301
    @francoislepron2301 2 місяці тому

    Great explanations.

  • @singhbrozz1996
    @singhbrozz1996 2 роки тому

    awesome explanation by you

  • @user-ql1rg9mj9d
    @user-ql1rg9mj9d Рік тому

    thank you good information~!

  • @AshokKumar-kl4et
    @AshokKumar-kl4et Рік тому

    Thanks Raj

  • @davidleal714
    @davidleal714 3 роки тому

    thank you so much, it was pretty good explanation

  • @Learner-hg4hj
    @Learner-hg4hj Рік тому

    Best explanation sir ! All others are confusing

  • @nagadeepkodali1151
    @nagadeepkodali1151 3 роки тому

    Tq Raj👍

  • @sitarampal6753
    @sitarampal6753 2 роки тому

    you are amazing man

  • @Probattu
    @Probattu 3 роки тому +1

    I got this question in interview, I did not answered. Thank you bro.

    • @cloudwithraj
      @cloudwithraj  3 роки тому +3

      Now you are ready for this in the next interview A B :)

  • @smarttradzt4933
    @smarttradzt4933 2 роки тому

    Thank you! love your explanation...susbscribed!

  • @goliafffff
    @goliafffff 3 роки тому

    Excellent explanation!

  • @arpanbanejee5143
    @arpanbanejee5143 3 роки тому +1

    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!

  • @edwinrapheal2803
    @edwinrapheal2803 Рік тому +2

    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?

  • @param8378
    @param8378 2 роки тому

    Why we need to copy only requirement at line 8 and we copy all folders in project right?

  • @harkirehal8243
    @harkirehal8243 2 роки тому

    Hello Guys and Gals :)

  • @Twigster1
    @Twigster1 2 роки тому

    Hi Raj, do you have the files user in this video's available on Git please?

    • @cloudwithraj
      @cloudwithraj  2 роки тому

      Will check if I still have'em and upload to Git and let you know

    • @Twigster1
      @Twigster1 2 роки тому

      @@cloudwithraj hi, any joy with the files please?

  • @2mailram
    @2mailram 2 роки тому

    intially you shown for python code. how to achive this using this way ?