Тёмный

Day 3/40 - Multi Stage Docker Build - Docker Tutorial For Beginners - CKA Full Course 2024 

Tech Tutorials with Piyush
Подписаться 31 тыс.
Просмотров 4,3 тыс.
50% 1

Welcome to the Day 3/40 video of Certified Kubernetes Administrator (CKA)! Today, we'll explore Multi-Stage Docker Builds, a powerful technique that can significantly optimize your container images, make them secure, and drastically reduce the image size.
🤷‍♂️ Why Multi-Stage Builds Matter:
Learn how to create slimmer, more efficient container images using multi-stage builds
- a key concept for the Containers, Kubernetes, and production deployments.
- Enhanced Security: We'll explore the security benefits of multi-stage builds, helping you create more secure container environments.
- Best Practices Unveiled: Gain valuable insights into essential Docker best practices that elevate your containerization skills.
⎈ By the end of this video, you'll be able to:
- Craft Multi-Stage Dockerfiles: Master the art of writing Dockerfiles that leverage multi-stage builds for optimized container images.
- Understand the Benefits: Grasp the advantages of using multi-stage builds regarding image size, security, and efficiency.
- Implement Best Practices: Integrate valuable Docker best practices into your containerization workflow.
- Solid Docker skills are essential for the CKA exam and real-world Kubernetes deployments. This video equips you with the knowledge to excel!
🚀 Reinforce your knowledge with practical tasks in the Day 1 folder of our GitHub repository: github.com/piyushsachdeva/CKA...
👨🏼‍💻 #40daysofKubernetes Challenge:
Join our 40-day challenge and solidify your Kubernetes skills. Details can be found in the "#40daysofkubernetes.md" file on GitHub or by watching our Day 0 video.
📖 Course Schedule:
I'll release 3-4 videos per week and host live Q&A sessions on weekends to answer your questions and guide you through the CKA certification process.
🕵🏻‍♂️ Who Should Watch:
This CKA course is designed for beginners, college students, and working professionals who want to learn Kubernetes from scratch, prepare for the CKA certification exam, or enhance their knowledge. It was designed based on the latest curriculum for the CKA exam in May 2024 and uses 1.30.2 as the Kubernetes version.
Let's start your Kubernetes journey together!
𝗖𝗢𝗠𝗣𝗟𝗘𝗧𝗘 𝗧𝗨𝗧𝗢𝗥𝗜𝗔𝗟 𝗦𝗘𝗥𝗜𝗘𝗦 👌 It’s 🅵🆁🅴🅴 ⛳
✅ 𝗔𝘇𝘂𝗿𝗲 𝗗𝗲𝘃𝗢𝗽𝘀 𝗭𝗲𝗿𝗼 𝘁𝗼 𝗛𝗲𝗿𝗼:
• Azure DevOps Zero to H...
✅ 𝗔𝗭𝟵𝟬𝟬 𝗔𝘇𝘂𝗿𝗲 𝗙𝘂𝗻𝗱𝗮𝗺𝗲𝗻𝘁𝗮𝗹𝘀 𝗙𝘂𝗹𝗹 𝗖𝗼𝘂𝗿𝘀𝗲
• AZ900WithPiyush - Azur...
✅ 𝗡𝗮𝗺𝗮𝘀𝘁𝗲 𝗚𝗼𝗼𝗴𝗹𝗲 𝗖𝗹𝗼𝘂𝗱 | 𝗚𝗖𝗣 𝗧𝘂𝘁𝗼𝗿𝗶𝗮𝗹 𝗳𝗼𝗿 𝗯𝗲𝗴𝗶𝗻𝗻𝗲𝗿𝘀, 𝗮 𝗰𝗼𝗺𝗽𝗹𝗲𝘁𝗲 𝗽𝗹𝗮𝘆𝗹𝗶𝘀𝘁 𝗳𝗼𝗿 𝘁𝗵𝗲 𝗔𝘀𝘀𝗼𝗰𝗶𝗮𝘁𝗲 𝗖𝗹𝗼𝘂𝗱 𝗘𝗻𝗴𝗶𝗻𝗲𝗲𝗿 (𝗔𝗖𝗘) 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻 𝗘𝘅𝗮𝗺:
• Namaste Google Cloud, ...
✅ 𝗔𝘇𝘂𝗿𝗲 𝗗𝗮𝘁𝗮 𝗳𝘂𝗻𝗱𝗮𝗺𝗲𝗻𝘁𝗮𝗹𝘀 𝗗𝗣 𝟵𝟬𝟬 𝗳𝘂𝗹𝗹 𝗰𝗼𝘂𝗿𝘀𝗲
• Microsoft Azure Data F...
✅ 𝗝𝗲𝗻𝗸𝗶𝗻𝘀 𝗧𝘂𝘁𝗼𝗿𝗶𝗮𝗹 𝗳𝗼𝗿 𝗕𝗲𝗴𝗶𝗻𝗻𝗲𝗿𝘀
• Jenkins Tutorial For B...
✅ #𝟭𝟬𝘄𝗲𝗲𝗸𝘀𝗼𝗳𝗰𝗹𝗼𝘂𝗱𝗼𝗽𝘀 - 𝗥𝗲𝗮𝗹-𝘁𝗶𝗺𝗲 𝗰𝗼𝗺𝗽𝗹𝗲𝘅 𝗵𝗮𝗻𝗱𝘀-𝗼𝗻 𝗽𝗿𝗼𝗷𝗲𝗰𝘁𝘀 𝗼𝗻 𝗖𝗹𝗼𝘂𝗱 𝗮𝗻𝗱 𝗗𝗲𝘃𝗢𝗽𝘀
• 10WeeksOfCloudOps Chal...
✅ 𝗗𝗲𝘃𝗢𝗽𝘀 𝗮𝗻𝗱 𝗖𝗹𝗼𝘂𝗱 𝗣𝗼𝗱𝗰𝗮𝘀𝘁𝘀:
• DevOps and Cloud Podcasts
✅ 𝗚𝗶𝘁𝗹𝗮𝗯 𝗖𝗜 𝗖𝗗 𝗧𝘂𝘁𝗼𝗿𝗶𝗮𝗹 | 𝗘𝗻𝗱 𝗧𝗼 𝗘𝗻𝗱 𝗥𝗲𝗮𝗹-𝘁𝗶𝗺𝗲 𝗣𝗿𝗼𝗷𝗲𝗰𝘁 [𝗙𝘂𝗹𝗹 𝗖𝗼𝘂𝗿𝘀𝗲]
• Gitlab CI CD Tutorial ...
Subscribe to our channel to get notified about the latest videos.
🔥 / techtutorialswithpiyush
-----------------------------------------------------------------------------------------------------------------------
𝗖𝗼𝗻𝗻𝗲𝗰𝘁 𝗺𝗲 𝗛𝗲𝗿𝗲:👇👇
🔥𝗬𝗼𝘂𝗧𝘂𝗯𝗲 ▶ / techtutorialswithpiyush
⛳𝗟𝗶𝗻𝗸𝗲𝗱𝗜𝗻 ▶ / piyush-sachdeva
🚀𝗜𝗻𝘀𝘁𝗮𝗴𝗿𝗮𝗺 ▶ / techtutorialswithpiyush
🌍𝗧𝘄𝗶𝘁𝘁𝗲𝗿 ▶ / techie_piyush
👨‍💻 𝗚𝗶𝘁𝗵𝘂𝗯 ▶ github.com/piyushsachdeva
✍ 𝗠𝗲𝗱𝗶𝘂𝗺.𝗰𝗼𝗺 ▶ / piyush.sachdeva055
📚 𝗱𝗲𝘃.𝘁𝗼 ▶ dev.to/piyushsachdeva
✨𝗗𝗶𝘀𝗰𝗼𝗿𝗱 ▶ / discord
-----------------------------------------------------------------------------------------------------------------------
References 📚:
#devops #kubernetes
cka full course 2024
certified kubernetes administrator
cka full course
kubernetes tutorial
kubernetes tutorial for beginners
kubernetes explained
cka 2024
kubernetes crash course
docker vs kubernetes
kubernetes for beginners
cka certification
kubernetes course
kubernetes full course
kubernetes certification
cka exam
Multi Stage Docker Build
docker build
docker tutorial
docker tutorial for beginners
how to reduce docker image size
docker multistage build

Наука

Опубликовано:

 

18 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 122   
@shashikantdivekar7839
@shashikantdivekar7839 11 часов назад
Great video. Very informative and concise. You are providing lot of knowledge and in an easy to understand way. GEAT WORK! Thank you.
@girishk1142
@girishk1142 11 дней назад
point to point -- no waste or unnecessary explanations, saving a lot of time for us. 😀 Thank you.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 10 дней назад
Glad you found it helpful ☺️
@pranay_vlogs_20
@pranay_vlogs_20 17 дней назад
simply superb piyush. Thank you.
@our-s-life
@our-s-life 18 дней назад
again, excellent .. very clear explanation
@TechTutorialswithPiyush
@TechTutorialswithPiyush 18 дней назад
Glad you think so!
@krupakarreddy8845
@krupakarreddy8845 19 дней назад
Great stuff! I would like to provide minimum of 5 best practices of writing dockerfiles and builing images. 1- run the containers as USER (user instruction) 2- make the docker images very light weighted as much as possible 3- use cache during build the image, hence it saves build time. For eg. use docker build tag . --cache-from 4- if we have any environment variables that are sensitive, mount them as secrets. 5- we can also mount cache inside dockerfile as well to reduce build times. and append multiple RUN instructions as single RUN instruction to reduce the layers for size reducing.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 19 дней назад
This is amazing! thank you for sharing
@nope-ms4rx
@nope-ms4rx 20 дней назад
Another one crushed and more success is heading your way. Day by day it will snowball into something much bigger. You are the epitome of what a mentor should be.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 19 дней назад
Thank you so much! I cannot do anything without the support of everyone, I am glad to have such a supportive community❤️
@syamkumar7751
@syamkumar7751 25 дней назад
simple awesome
@TechTutorialswithPiyush
@TechTutorialswithPiyush 25 дней назад
Thanks a lot
@jalandharbehera99
@jalandharbehera99 10 дней назад
the way you are explaining that is fully easy to understand bro🙏
@TechTutorialswithPiyush
@TechTutorialswithPiyush 10 дней назад
That's my goal 💪🚀
@HPKnowValley
@HPKnowValley 16 дней назад
Awesome explaination
@ayaourag3169
@ayaourag3169 Месяц назад
Thank you for this valuable video. I will publish the corresponding blog as soon as possible. Please keep up the great work! Regarding your last request, one of the best practices is to ensure you choose a secure base image by verifying it is built from a trusted source (such as Docker Official Images, Verified Publisher, or Docker-sponsored open source).
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you for the kind words! Yes, that is one of the best practices. Make sure to understand the rest of them as well through the official docker documentation.
@niksojitra
@niksojitra Месяц назад
Your dedication to releasing the video as promised, despite not feeling well, is truly commendable and greatly appreciated.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you so much! No excuses for commitment :)
@johnpaulden007
@johnpaulden007 Месяц назад
Thanks Piyush for this content.. to the point and precise !! Very thankful !!
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Glad to hear that
@Enroll2Upskill
@Enroll2Upskill Месяц назад
Lesson learn today no excuses even if you are suffering from cold and throat infection. Learning is inspiring now ! 😊👏
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Right! I committed to myself to record 1-2 videos every day for 30 days continuously. I am proud of myself for sticking to the plan.
@Enroll2Upskill
@Enroll2Upskill Месяц назад
@@TechTutorialswithPiyush Commitments to others are easy to complete but self commitments are difficult. It shows your discipline and dedication. Love and best wishes from @Enroll2Upskill
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
@@Enroll2Upskill Thank you once again ❤️
@codytech9558
@codytech9558 Месяц назад
Great Session , please continue
@AshokKumar-nh3wb
@AshokKumar-nh3wb Месяц назад
Thank You for the sharing knowledge. Please continue.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you! Feel free to start the next video.
@KRISHNAKUMAR-yj3dx
@KRISHNAKUMAR-yj3dx Месяц назад
Thanks a lot for such a great explanation!!
@6699anish
@6699anish Месяц назад
Thanks a lot for presenting this much knowledge in an easier and simplified manner...
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
You're welcome
@KRISHNAKUMAR-yj3dx
@KRISHNAKUMAR-yj3dx Месяц назад
Great explanation!!!
@nike0822
@nike0822 Месяц назад
Thank you Piyush. It was really helpful and I like the way you explain things in a simple way. 🙌 Please also share or relate the concepts to the real time use cases.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you so much for the feedback! I will have a lot to cover as we moved ahead in this series. I will definitely share real time use cases. stay tuned and keep supporting
@yashdhoot9518
@yashdhoot9518 Месяц назад
great work buddy
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you!
@sagarbirla2879
@sagarbirla2879 Месяц назад
amazing video
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you
@girdhar3224
@girdhar3224 Месяц назад
Banger🔥
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you!
@KRISHNAKUMAR-yj3dx
@KRISHNAKUMAR-yj3dx Месяц назад
Thanks a lot for this great explanation!!!!!!
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
You're welcome
@anuraggupta1008
@anuraggupta1008 Месяц назад
Wait for the next stuff❤
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Next video coming tomorrow!
@RaviKumar-fw1di
@RaviKumar-fw1di Месяц назад
Awesome session, very well explaind easy to understand people with zero knoweldge ! Thank you Piyush ....
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
My pleasure
@sangativamsikrishna1691
@sangativamsikrishna1691 Месяц назад
Thanks for the most useful and awaited series piyush, appreciate your efforts for all the hard work and dedication your are giving to the CKA learning community. Thank you soo much 🙏🙏🙏
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
That means a lot! Thank you so much brother
@siphokazidolo
@siphokazidolo Месяц назад
Thank you, I learnt something new.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Glad it was helpful!
@prashlovessamosa
@prashlovessamosa 23 дня назад
great
@kaarthickpk
@kaarthickpk Месяц назад
Great work bro...Please keep up the good work.... 🙌👏
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thanks
@popurisrinivas5479
@popurisrinivas5479 Месяц назад
good content
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you
@dr.hemantchauhan2613
@dr.hemantchauhan2613 Месяц назад
Nice
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thanks❤️
@TravellingSquad
@TravellingSquad Месяц назад
Hey Piyush, 3rd video in a row for me...Again I am thankful to you for your valuable time and KT.. Your videos give me best revision ever🤜🤛💯 Thank you buddy. Waiting for next video 😊
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
And the 4th one as well :) The fifth video will be published on Monday. Thank you for your support :)
@rushikesh.spatil387
@rushikesh.spatil387 Месяц назад
Excited ❤🎉
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you!
@Anonymous_810
@Anonymous_810 Месяц назад
Great content 👌🏻
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you!
@vm_naveen
@vm_naveen Месяц назад
Thank you !
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
You're welcome!
@SundayBusiness-kf7mz
@SundayBusiness-kf7mz Месяц назад
Day 3 Great Content
@christober.s7006
@christober.s7006 Месяц назад
Thanks for sharing
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thanks for watching!
@krishnaprasath-jh5gb
@krishnaprasath-jh5gb Месяц назад
Third video in row following up nice having up all this learning
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Next one coming tomorrow! Let's go
@floehden
@floehden Месяц назад
Thank you for this interesting Multistage Tutorial
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Glad it was helpful!
@suhasdhoke1735
@suhasdhoke1735 Месяц назад
well explained :) thanks bhai
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
you're welcome bhai
@princekwes88
@princekwes88 Месяц назад
Awesome content.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thanks
@Shubhamgourtech
@Shubhamgourtech Месяц назад
Piyush bhai just wanted to say a thank you for creating this playlist after coming from office i really have very less time for some productive work but this series is both a roadmap and a new journey for me thanks for it and i really appreciate your hardwork behind making this series!
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
This means a lot! Thank you so much for the amazing feedback.
@NortheastCareerSolutions
@NortheastCareerSolutions Месяц назад
Great content
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you!
@OpenToLearn
@OpenToLearn Месяц назад
Excellent video brother keep up the good work.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Much appreciated
@nandhulala2207
@nandhulala2207 Месяц назад
Very Informative. Thank you.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
You're welcome
@printdevismitasahoo1407
@printdevismitasahoo1407 Месяц назад
Very nicely explain, Looking forward to learn more.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Awesome, thank you!
@SundayBusiness-kf7mz
@SundayBusiness-kf7mz Месяц назад
3 Day great content.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you
@jensenjose682
@jensenjose682 Месяц назад
Waiting to get started with Kubernetes!!!
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Yes one more video and then we'll start with Kubernetes from Monday onwards
@ebenezerbarning5093
@ebenezerbarning5093 Месяц назад
thanks again sir. you are a great teacher.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
It means a lot! Thank you
@artbart9080
@artbart9080 Месяц назад
Nice video. Didn't get difference between "copy . ." and "copy . ./" so i googled it. "copy . ." copy all files to container WORKDIR directory and "copy . ./" copy all files to container root directory.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Great job figuring it out!
@mgdesire9255
@mgdesire9255 Месяц назад
Thank you guru ji ❤
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
You're welcome bhai
@kowshiks229
@kowshiks229 15 часов назад
in this multistage Dockerfile example, the port is not mentioned , then how can i access the todo-app
@TechTutorialswithPiyush
@TechTutorialswithPiyush 14 часов назад
Good question! As we are using Nginx, it exposes the app on port 80 by default
@kowshiks229
@kowshiks229 14 часов назад
@@TechTutorialswithPiyush thank you sir
@dr.hemantchauhan2613
@dr.hemantchauhan2613 Месяц назад
❤❤
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
🙏❤️
@noelthomasbejoy3089
@noelthomasbejoy3089 19 дней назад
Hey Piyush,just one doubt,why are you running docker run -it -dp, aren't it and d options contradictory? 12:41
@TechTutorialswithPiyush
@TechTutorialswithPiyush 19 дней назад
Yes, you are right. I made the mistake, good catch bdw
@christober.s7006
@christober.s7006 Месяц назад
Best practices : Don't install unnecessary packages and Sort multi-line arguments. got it through Docker docs.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Great job!
@bonganinyoni1428
@bonganinyoni1428 Месяц назад
Great video, 3rd Day, How can we expose this app? I think that instruction was left out but people will google around 🤣
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Well yeah, I did miss that intentionally. I want people to figure it out😄
@keshav0844
@keshav0844 27 дней назад
even after exposing, it does not work. If you yours is running, please help.
@harshithareddy4771
@harshithareddy4771 Месяц назад
Best practices : 1. Exclude files and directories that are not needed in the Docker context(Using .dockerignore File) 2. Reducing the Number of Layers i.e. Each RUN, COPY, or ADD instruction adds a layer to the image. Combine multiple commands into a single RUN statement to reduce the number of layers.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
That's a good start but there are a lot more. Check out the below documentation as well: docs.docker.com/build/building/best-practices/
@harshithareddy4771
@harshithareddy4771 Месяц назад
Thanks for the additional documentation link! I'll review it.
@baivabmukhopadhyay8970
@baivabmukhopadhyay8970 Месяц назад
Do we need to know any specific cloud provider before doing this course?
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
We will not be using any Cloud as the focus is on Kubernetes. Using a cloud service would mean that the control plane is managed by the Cloud provider, which would limit learning. We will be using a local Kubernetes installation on a Kind cluster and, later, a Kubeadm installation on virtual machines.
@niranjanmjniru8147
@niranjanmjniru8147 Месяц назад
reducing the layers
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Not so much, layered architecture actually helps with reducing size. I would recommend checking out the docker best practices on the official documentation page.
@uttamsharma9042
@uttamsharma9042 Месяц назад
next video come
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Video 4 will be published tomorrow.
@commerce9261
@commerce9261 Месяц назад
a
@shivishdurkalhan-dev
@shivishdurkalhan-dev Месяц назад
remove the annoying background music
@siddharthsingh9253
@siddharthsingh9253 Месяц назад
Nice
@SundayBusiness-kf7mz
@SundayBusiness-kf7mz Месяц назад
Day 3 Great Content
Далее
Docker Crash Course for Absolute Beginners [NEW]
1:07:39
📱магазин техники в 2014 vs 2024
0:41