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.
@TechTutorialswithPiyush5 ай бұрын
This is amazing! thank you for sharing
@niksojitra6 ай бұрын
Your dedication to releasing the video as promised, despite not feeling well, is truly commendable and greatly appreciated.
@TechTutorialswithPiyush6 ай бұрын
Thank you so much! No excuses for commitment :)
@chennareddy461815 сағат бұрын
thanks for sharing sir :)
@TechTutorialswithPiyush10 сағат бұрын
Welcome!
@nope-ms4rx5 ай бұрын
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.
@TechTutorialswithPiyush5 ай бұрын
Thank you so much! I cannot do anything without the support of everyone, I am glad to have such a supportive community❤️
@Enroll2Upskill6 ай бұрын
Lesson learn today no excuses even if you are suffering from cold and throat infection. Learning is inspiring now ! 😊👏
@TechTutorialswithPiyush6 ай бұрын
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.
@Enroll2Upskill6 ай бұрын
@@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
@TechTutorialswithPiyush6 ай бұрын
@@Enroll2Upskill Thank you once again ❤️
@varunjoshi44103 ай бұрын
Appreciate you taking out time and creating this series.
@TechTutorialswithPiyush2 ай бұрын
Welcome :)
@mike44854 ай бұрын
I was very much confused with this.. now multistage docker build concept got clarified.. Thank you So much 😊
@TechTutorialswithPiyush4 ай бұрын
Awesome! Super happy to know that
@RaviKumar-fw1di6 ай бұрын
Awesome session, very well explaind easy to understand people with zero knoweldge ! Thank you Piyush ....
@TechTutorialswithPiyush6 ай бұрын
My pleasure
@shashikantdivekar78395 ай бұрын
Great video. Very informative and concise. You are providing lot of knowledge and in an easy to understand way. GEAT WORK! Thank you.
@TechTutorialswithPiyush5 ай бұрын
It means a lot! Thank you so much
@SZTC2 ай бұрын
Best series for CKA.
@TechTutorialswithPiyush2 ай бұрын
Thank you
@DAEC_KAkash4 ай бұрын
the way you are explaining that is fully easy to understand bro
@TechTutorialswithPiyush4 ай бұрын
Glad to know that bro! Thank you
@bhanubisht8Ай бұрын
nice vide
@TechTutorialswithPiyushАй бұрын
Thanks
@6699anish6 ай бұрын
Thanks a lot for presenting this much knowledge in an easier and simplified manner...
@TechTutorialswithPiyush6 ай бұрын
You're welcome
@girishk11425 ай бұрын
point to point -- no waste or unnecessary explanations, saving a lot of time for us. 😀 Thank you.
@TechTutorialswithPiyush5 ай бұрын
Glad you found it helpful ☺️
@rowervem3 ай бұрын
this is great. Your effort is so much appreciated
@TechTutorialswithPiyush3 ай бұрын
You're most welcome
@AshokKumar-nh3wb6 ай бұрын
Thank You for the sharing knowledge. Please continue.
@TechTutorialswithPiyush6 ай бұрын
Thank you! Feel free to start the next video.
@Shubhamgourtech6 ай бұрын
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!
@TechTutorialswithPiyush6 ай бұрын
This means a lot! Thank you so much for the amazing feedback.
@AtulSingh-lr1bfАй бұрын
Hi piyush thank you very much for making this series can you please make for monitoring tool also
@jalandharbehera995 ай бұрын
the way you are explaining that is fully easy to understand bro🙏
@TechTutorialswithPiyush5 ай бұрын
That's my goal 💪🚀
@sangativamsikrishna16916 ай бұрын
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 🙏🙏🙏
@TechTutorialswithPiyush6 ай бұрын
That means a lot! Thank you so much brother
@sipsdolo6 ай бұрын
Thank you, I learnt something new.
@TechTutorialswithPiyush6 ай бұрын
Glad it was helpful!
@sinstergate4 ай бұрын
I am loving it….i completed the azure devops cert watching devops playlist…i build my own dockerfile it is very easy….since I had a Linux background
@TechTutorialswithPiyush4 ай бұрын
Awesome! A huge congratulations to you
@KRISHNAKUMAR-yj3dx6 ай бұрын
Thanks a lot for this great explanation!!!!!!
@TechTutorialswithPiyush6 ай бұрын
You're welcome
@our-s-life5 ай бұрын
again, excellent .. very clear explanation
@TechTutorialswithPiyush5 ай бұрын
Glad you think so!
@Risabhmewara5 ай бұрын
Again another masterpiece Session...Great work Piyush..tons of thanks ..
@TechTutorialswithPiyush5 ай бұрын
My pleasure 😊
@artbart90806 ай бұрын
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.
@TechTutorialswithPiyush6 ай бұрын
Great job figuring it out!
@rahuldey55642 ай бұрын
Both are same copy . . and copy . ./ !!!! the . means current directory, hence copy . app/
@kaarthickpk6 ай бұрын
Great work bro...Please keep up the good work.... 🙌👏
@TechTutorialswithPiyush6 ай бұрын
Thanks
@nirjasmuhammed2 ай бұрын
Thanks sir....
@TechTutorialswithPiyush2 ай бұрын
You're welcome! Glad you found it helpful.
@Audi888354 ай бұрын
Really thanks..you did a great job for us..
@TechTutorialswithPiyush3 ай бұрын
It's my pleasure
@TravellingSquad6 ай бұрын
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 😊
@TechTutorialswithPiyush6 ай бұрын
And the 4th one as well :) The fifth video will be published on Monday. Thank you for your support :)
@HPKnowValley5 ай бұрын
Awesome explaination
@krishnaprasath-jh5gb6 ай бұрын
Third video in row following up nice having up all this learning
@TechTutorialswithPiyush6 ай бұрын
Next one coming tomorrow! Let's go
@SandeepChikkala-i4s4 ай бұрын
Great work. To your dedication Hats-off
@TechTutorialswithPiyush3 ай бұрын
Thank you
@pranay_vlogs_205 ай бұрын
simply superb piyush. Thank you.
@gibrankhan82324 ай бұрын
Nicely explained
@TechTutorialswithPiyush4 ай бұрын
Thanks for liking
@KRISHNAKUMAR-yj3dx6 ай бұрын
Thanks a lot for such a great explanation!!
@KRISHNAKUMAR-yj3dx6 ай бұрын
Great explanation!!!
@floehden6 ай бұрын
Thank you for this interesting Multistage Tutorial
@TechTutorialswithPiyush6 ай бұрын
Glad it was helpful!
@OpenToLearn6 ай бұрын
Excellent video brother keep up the good work.
@TechTutorialswithPiyush6 ай бұрын
Much appreciated
@printdevismitasahoo14076 ай бұрын
Very nicely explain, Looking forward to learn more.
@TechTutorialswithPiyush6 ай бұрын
Awesome, thank you!
@johnpaulden0076 ай бұрын
Thanks Piyush for this content.. to the point and precise !! Very thankful !!
@TechTutorialswithPiyush6 ай бұрын
Glad to hear that
@ayaourag31696 ай бұрын
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).
@TechTutorialswithPiyush6 ай бұрын
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.
@ThachnamAG19894 ай бұрын
Thank you so much
@TechTutorialswithPiyush4 ай бұрын
You're welcome
@Anonymous_8106 ай бұрын
Great content 👌🏻
@TechTutorialswithPiyush6 ай бұрын
Thank you!
@ebenezerbarning50936 ай бұрын
thanks again sir. you are a great teacher.
@TechTutorialswithPiyush6 ай бұрын
It means a lot! Thank you
@TheZikori2 ай бұрын
Great work sir
@TechTutorialswithPiyush2 ай бұрын
Thank you so much!
@jensenjose6826 ай бұрын
Waiting to get started with Kubernetes!!!
@TechTutorialswithPiyush6 ай бұрын
Yes one more video and then we'll start with Kubernetes from Monday onwards
@nandhulala22076 ай бұрын
Very Informative. Thank you.
@TechTutorialswithPiyush6 ай бұрын
You're welcome
@nike08226 ай бұрын
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.
@TechTutorialswithPiyush6 ай бұрын
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
@MihirModi-ix7zw4 ай бұрын
Great video, but there is a problem accessing a website. When you try to access the application via port 3000, you cannot do so because the files are served by the Nginx server, which listens to port 80 by default. To make the application accessible, you must bind port 80 of the container to port 3000 on the host machine. docker run -dp 3000:80 If I'm wrong, please correct me sir.
@TechTutorialswithPiyush4 ай бұрын
Hello Mihir, It was left intentional as a knowledge check. Great catch and yes you are absolutely right, that is the reason, I did not explicity expose the application in the dockerfile
@syamkumar77516 ай бұрын
simple awesome
@TechTutorialswithPiyush6 ай бұрын
Thanks a lot
@GowthamKumar-vf9qcАй бұрын
Thank you bro 🥰
@TechTutorialswithPiyushАй бұрын
Welcome 😊
@GrigTech3 ай бұрын
Thank You
@SundayBusiness-kf7mz6 ай бұрын
Day 3 Great Content
@SundayBusiness-kf7mz6 ай бұрын
3 Day great content.
@TechTutorialswithPiyush6 ай бұрын
Thank you
@yashdhoot95186 ай бұрын
great work buddy
@TechTutorialswithPiyush6 ай бұрын
Thank you!
@princekwes886 ай бұрын
Awesome content.
@TechTutorialswithPiyush6 ай бұрын
Thanks
@KsChina4 ай бұрын
excellent!
@TechTutorialswithPiyush4 ай бұрын
Thank you
@NortheastCareerSolutions6 ай бұрын
Great content
@TechTutorialswithPiyush6 ай бұрын
Thank you!
@popurisrinivas54796 ай бұрын
good content
@TechTutorialswithPiyush6 ай бұрын
Thank you
@vm_naveen6 ай бұрын
Thank you !
@TechTutorialswithPiyush6 ай бұрын
You're welcome!
@christober.s70066 ай бұрын
Thanks for sharing
@TechTutorialswithPiyush6 ай бұрын
Thanks for watching!
@prashlovessamosa6 ай бұрын
great
@nousheensafoora2063 ай бұрын
day-3 completed
@dr.hemantchauhan26136 ай бұрын
Nice
@TechTutorialswithPiyush6 ай бұрын
Thanks❤️
@mgdesire92556 ай бұрын
Thank you guru ji ❤
@TechTutorialswithPiyush6 ай бұрын
You're welcome bhai
@noelthomasbejoy30895 ай бұрын
Hey Piyush,just one doubt,why are you running docker run -it -dp, aren't it and d options contradictory? 12:41
@TechTutorialswithPiyush5 ай бұрын
Yes, you are right. I made the mistake, good catch bdw
@suhasdhoke17356 ай бұрын
well explained :) thanks bhai
@TechTutorialswithPiyush6 ай бұрын
you're welcome bhai
@rushikesh.spatil3876 ай бұрын
Excited ❤🎉
@TechTutorialswithPiyush6 ай бұрын
Thank you!
@anuraggupta10086 ай бұрын
Wait for the next stuff❤
@TechTutorialswithPiyush6 ай бұрын
Next video coming tomorrow!
@kowshiks2295 ай бұрын
in this multistage Dockerfile example, the port is not mentioned , then how can i access the todo-app
@TechTutorialswithPiyush5 ай бұрын
Good question! As we are using Nginx, it exposes the app on port 80 by default
@kowshiks2295 ай бұрын
@@TechTutorialswithPiyush thank you sir
@girdhar32246 ай бұрын
Banger🔥
@TechTutorialswithPiyush6 ай бұрын
Thank you!
@tobaakanbi78794 ай бұрын
Day 3 ✅
@TechTutorialswithPiyush4 ай бұрын
Great, keep it up
@rayanjames3050Ай бұрын
My Dockerfile failed to run when using npm run build and npm build, the error was => ERROR [installer 6/6] RUN npm build 1.4s ------ > [installer 6/6] RUN npm build: 1.375 Unknown command: "build" 1.376 1.376 To see a list of supported npm commands, run: 1.376 npm help
@TechTutorialswithPiyushАй бұрын
Could be the issue with your project. Check if you have the build command in your json file
@harshithareddy47716 ай бұрын
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.
@TechTutorialswithPiyush6 ай бұрын
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/
@harshithareddy47716 ай бұрын
Thanks for the additional documentation link! I'll review it.
@naweedahmadkhesrawi7936Ай бұрын
Programming skills are required for kubernetes administration or no???
@baivabmukhopadhyay89706 ай бұрын
Do we need to know any specific cloud provider before doing this course?
@TechTutorialswithPiyush6 ай бұрын
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.
@gokulprasathnandhakumar831319 күн бұрын
I completed my day -3 course i completed my multi staging task
@TechTutorialswithPiyush18 күн бұрын
lets go💪
@Ramm1654 ай бұрын
Hi piyush i have one question.For machine learning based projects we have model weights which are typically 700mb range so do we generally package the model weights in the docker image ?
@TechTutorialswithPiyush4 ай бұрын
Sorry buddy, I dont have much experience with ML related workloads. What I know is, we can pre-pulled the images on our node to save the pod creation time, we can do bin packing as well.
@Ramm1654 ай бұрын
@TechTutorialswithPiyush ok thank you piyush
@christober.s70066 ай бұрын
Best practices : Don't install unnecessary packages and Sort multi-line arguments. got it through Docker docs.
@TechTutorialswithPiyush6 ай бұрын
Great job!
@bonganinyoni14286 ай бұрын
Great video, 3rd Day, How can we expose this app? I think that instruction was left out but people will google around 🤣
@TechTutorialswithPiyush6 ай бұрын
Well yeah, I did miss that intentionally. I want people to figure it out😄
@keshav08446 ай бұрын
even after exposing, it does not work. If you yours is running, please help.
@dr.hemantchauhan26136 ай бұрын
❤❤
@TechTutorialswithPiyush6 ай бұрын
🙏❤️
@debillion2 ай бұрын
Avoid using mutiline. The multilines should be merged to avoid too much layers
@TechTutorialswithPiyush2 ай бұрын
Yes, I was planning to create a seperate video for all the best practices with Docker, thanks for sharing it tho.
@rayanjames3050Ай бұрын
Day D
@niranjanmjniru81476 ай бұрын
reducing the layers
@TechTutorialswithPiyush6 ай бұрын
Not so much, layered architecture actually helps with reducing size. I would recommend checking out the docker best practices on the official documentation page.
@uttamsharma90426 ай бұрын
next video come
@TechTutorialswithPiyush6 ай бұрын
Video 4 will be published tomorrow.
@vidyasagar881017 сағат бұрын
👌🤌👌
@nousheensafoora2063 ай бұрын
Distroless image
@TechTutorialswithPiyush3 ай бұрын
That's true, also many other things such as Multistage build