Day 3/40 - Multi Stage Docker Build - Docker Tutorial For Beginners - CKA Full Course 2024
Vloลพit
- ฤas pลidรกn 18. 06. 2024
- 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 - Vฤda a technologie
Thanks a lot for presenting this much knowledge in an easier and simplified manner...
Thank You for the sharing knowledge. Please continue.
Thank you! Feel free to start the next video.
Great Session , please continue
Great explanation!!!
Thanks a lot for such a great explanation!!
Thanks a lot for this great explanation!!!!!!
You're welcome
Awesome session, very well explaind easy to understand people with zero knoweldge ! Thank you Piyush ....
My pleasure
Your dedication to releasing the video as promised, despite not feeling well, is truly commendable and greatly appreciated.
Thank you so much! No excuses for commitment :)
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 ๐๐๐
That means a lot! Thank you so much brother
Great content ๐๐ป
Thank you!
Thank you for this interesting Multistage Tutorial
Glad it was helpful!
Excellent video brother keep up the good work.
Much appreciated
Day 3 Great Content
Very nicely explain, Looking forward to learn more.
Awesome, thank you!
Thanks Piyush for this content.. to the point and precise !! Very thankful !!
Glad to hear that
Very Informative. Thank you.
You're welcome
Awesome content.
Thanks
thanks again sir. you are a great teacher.
It means a lot! Thank you
Waiting to get started with Kubernetes!!!
Yes one more video and then we'll start with Kubernetes from Monday onwards
great work buddy
Thank you!
3 Day great content.
Thank you
Banger๐ฅ
Thank you!
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.
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
Great content
Thank you!
Excited โค๐
Thank you!
Thank you !
You're welcome!
amazing video
Thank you
good content
Thank you
Nice
Wait for the next stuffโค
Next video coming tomorrow!
Third video in row following up nice having up all this learning
Next one coming tomorrow! Let's go
Thank you, I learnt something new.
Glad it was helpful!
Thanks for sharing
Thanks for watching!
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 ๐
And the 4th one as well :) The fifth video will be published on Monday. Thank you for your support :)
well explained :) thanks bhai
you're welcome bhai
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.
Great job figuring it out!
Thank you guru ji โค
You're welcome bhai
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!
This means a lot! Thank you so much for the amazing feedback.
Lesson learn today no excuses even if you are suffering from cold and throat infection. Learning is inspiring now ! ๐๐
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.
@@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
@@Enroll2Upskill Thank you once again โค๏ธ
โคโค
๐โค๏ธ
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.
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/
Thanks for the additional documentation link! I'll review it.
Best practices : Don't install unnecessary packages and Sort multi-line arguments. got it through Docker docs.
Great job!
Great video, 3rd Day, How can we expose this app? I think that instruction was left out but people will google around ๐คฃ
Well yeah, I did miss that intentionally. I want people to figure it out๐
Do we need to know any specific cloud provider before doing this course?
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.
reducing the layers
Not so much, layered architecture actually helps with reducing size. I would recommend checking out the docker best practices on the official documentation page.
next video come
Video 4 will be published tomorrow.
a
remove the annoying background music
Day 3 Great Content
Nice
Thanksโค๏ธ