33:45 1. **Use a Lightweight Base Image**: - Example: `FROM alpine:latest` 2. **Multi-Stage Builds**: - Build in one stage, copy artifacts to a clean stage. 3. **Minimize Layers**: - Combine commands into a single `RUN`. - Example: ```Dockerfile RUN apt-get update && apt-get install -y package1 package2 && apt-get clean && rm -rf /var/lib/apt/lists/* ``` 4. **Remove Unnecessary Files**: - Delete temporary files and caches. 5. **Use `.dockerignore` File**: - Exclude unnecessary files. - Example: ``` node_modules *.log ``` 6. **Optimize Dependencies**: - Install only necessary dependencies. 7. **Use `COPY` instead of `ADD`**: - `COPY` is more predictable.
@TechTutorialswithPiyush5 ай бұрын
Good job
@shubhamgawas874 ай бұрын
FYI for all, 11:30 lts - long term support latest - latest image great series sir !
@TechTutorialswithPiyush4 ай бұрын
Thank you so much
@aleahembley84663 ай бұрын
Im moving from IT 3rd line service desk to cloud engineering! This is super helpful ❤ Thank you!
@TechTutorialswithPiyush3 ай бұрын
Glad to know that my videos are being helpful ❤️ All the best for your transition into cloud, I wish it'll happen soon for you
@nope-ms4rx5 ай бұрын
You are that guy! Keep rolling! The interactions, likes, subscriptions, and more will follow in due time. You truly are gifted as a guide/teacher.
@TechTutorialswithPiyush5 ай бұрын
I appreciate that!
@PraveenKumar-DevOps6 ай бұрын
Your explanations are clear, and the content is super valuable. For reduce the size, we will use multi-stage builds. waiting for next video.
@TechTutorialswithPiyush6 ай бұрын
Awesome, thank you for the correct answer! Yes, that's what we will be doing in the next video tomorrow.
@gokulprasathnandhakumar831319 күн бұрын
Day -2 completed, for me, it was hard to understand and remember commands but I successfully created my first docker image and container.
@matinpathan51864 ай бұрын
Word by word sentence by sentence it's crystal clear explanation even if we had paid and earned this type of explanation is not available with any tutorials best of luck piyush
@TechTutorialswithPiyush4 ай бұрын
It feels great to know that 😄 Thank you
@suraganimaheshkumar28053 ай бұрын
Sir, You are doing a good service. Thanks Alot🙏🏼
@TechTutorialswithPiyush3 ай бұрын
You're most welcome
@abhijitdash978017 күн бұрын
today I completed day02 and It's so amazing.
@HimaniChauhan-rm1fb6 ай бұрын
Your explanations are relatable and easy to understand. The content is truly impressive.
@TechTutorialswithPiyush6 ай бұрын
Thank you so much! I am glad you found it helpful.
@GrigTech2 ай бұрын
Re-watch series again, on my path to achieve CKA, greate course , Tahnk You Piyush. Hopefully in near future see other cert path related to K8S
@TechTutorialswithPiyush2 ай бұрын
Always welcome, and yes, many more coming soon
@Nazrulislam136 ай бұрын
Thank you for your hard work; this series is absolutely fantastic!
@TechTutorialswithPiyush6 ай бұрын
You're very welcome!
@SherazKhan94Ай бұрын
You are amazing Piyush!
@TechTutorialswithPiyush27 күн бұрын
Thank you my friend.
@niksojitra6 ай бұрын
To reduce the size of a large Docker container image, we can: Use Multi-Stage Builds: Separate the build and runtime environments. Choose Minimal Base Images: Use images like alpine or scratch. Optimize Layer Structure: Combine commands to reduce the number of layers. Remove Unnecessary Files: Clean up caches and temporary files. Use .dockerignore: Exclude unneeded files from the build context. Minimize Dependencies: Only install necessary dependencies. Strip Binaries: Remove debug symbols and unnecessary parts from binaries. Externalize Configuration: Use environment variables or volumes for configuration. Compress and Optimize Assets: Reduce the size of images, fonts, and other assets. These practices help keep your Docker image as lean as possible.
@TechTutorialswithPiyush6 ай бұрын
That's absolutely correct!
@krishnaprasath-jh5gb6 ай бұрын
Thanks for the day 2 video sir it was helpfull. Cheers to new learnings
@TechTutorialswithPiyush6 ай бұрын
Awesome! Thanks for the feedback!
@johnpaulden0076 ай бұрын
Following.. much appreciated you posting the content now !! In depth explanation.. !!
@TechTutorialswithPiyush6 ай бұрын
My pleasure!
@varunjoshi44103 ай бұрын
Great stuff brother!
@venkatg-o4h5 ай бұрын
Excellent content to start. Thank you Piyush
@TechTutorialswithPiyush5 ай бұрын
you're welcome
@pranay_vlogs_205 ай бұрын
very cool tutorial and with neat explanation.
@somenghosh41636 ай бұрын
Just wow .. what an explaination and rich content !! Thanks Piyush. Will share it in other platform to make it reach to wider community.
@TechTutorialswithPiyush6 ай бұрын
Thank you so much buddy! I truly appreciate it
@Ethiofunnyshortvideos5 ай бұрын
Completed day02 challenge to day, It is very helpful, I enjoyed the video a lot and also I learned a lot, I will try to catch up with you guys as I can 🏃♂🏃♂🏃♂🏃♂🏃♂🏃♂🏃♂
@TechTutorialswithPiyush5 ай бұрын
I am glad that you found it helpful! Let's go with the next one!
@KRISHNAKUMAR-yj3dx6 ай бұрын
Awesome series!!!! Thanks a lot for detailed explanation!!!!!
@TechTutorialswithPiyush6 ай бұрын
You're welcome
@thewanderlustride4 ай бұрын
nice way of explaining. I really liked the step by step way to perform all the exercises. Enjoying the sessions!
@TechTutorialswithPiyush4 ай бұрын
Glad you enjoyed it!
@Greaterbangalore1Ай бұрын
You're simply great bro !
@TechTutorialswithPiyushАй бұрын
Thank you 🙏
@karthikkrishna3052 ай бұрын
You are Amazing bro! Keep up the good work!
@TechTutorialswithPiyush2 ай бұрын
Thank you so much, bro! 🙏
@aparajitadas26734 ай бұрын
Excellent explanation and hand holding practice
@TechTutorialswithPiyush4 ай бұрын
Glad you found it helpful 🙂
@LaxmiAdavalli-o5k5 ай бұрын
Well explained.. Enjoying while learning😊
@TechTutorialswithPiyush5 ай бұрын
Thanks for liking!
@TravellingSquad6 ай бұрын
Hey Piyush....Again you are with great content of docker. I appreciate your hard work and valuable time for teaching us. Hats off to you man..!! Please release daily basis video on this series I know it will difficult for you to manage but it will stay us to stick with you. See you in next video 👍 Your last question answer is ---> if we want to reduce our image size then we can use multi-stage Dockerfile.
@TechTutorialswithPiyush6 ай бұрын
Thank you for the feedback and yes, the answer is spot on. Regarding the daily video request: I have finished recording the entire series and am editing the last few videos. I plan to publish 3 to 4 weekly videos every Monday through Thursday at 6 AM EST/3:30 PM IST. I have chosen not to publish daily so that viewers following the series have time to understand the concepts, practice hands-on, document their learning, and not feel left behind. I hope you understand :)
@vinaykumar-qq9wq6 ай бұрын
Excellent take-off. keep up the good work for community. Looking forward for docker multi stage builds.👏👏👏 @TechTutorialswithPiyush
@TechTutorialswithPiyush6 ай бұрын
Thank you for the feedback! Yes, let's move forward with the next video.
@Risabhmewara5 ай бұрын
Awesome Piyush !! Great Details and Teaching...Really Excellent &Awesome
@TechTutorialswithPiyush5 ай бұрын
Thanks a ton
@mike44854 ай бұрын
Great session .. Thank you
@TechTutorialswithPiyush4 ай бұрын
You're welcome
@rishavkushwah216 ай бұрын
Awesome Thank you sir , now I can say I am really learning the docker
@TechTutorialswithPiyush6 ай бұрын
Let's go 🚀💪
@saheedabdulrahman25366 ай бұрын
Smoothly delivered. Kudos
@strangemate5 ай бұрын
lovely video, thanks
@ojosamuel37776 ай бұрын
Awesome content. Waiting for the next !!! Great work
@TechTutorialswithPiyush6 ай бұрын
Thanks a ton, next video tomorrow.
@prasad_yt6 ай бұрын
Clear and crisp !✅
@TechTutorialswithPiyush6 ай бұрын
Thank you so much
@printdevismitasahoo14076 ай бұрын
Nice Explanation,We can use distroless image to reduce and multi stage docker also. Another thing I want to add that can you use AWS terminal for the practice session, so that will be more user friendly.
@TechTutorialswithPiyush6 ай бұрын
Thanks for the feedback. Yes, you are right about using distroless and multi stage docker build. I could have used aws terminal or azure or gcp cloud shell but that is not the motive of this series. I tried to make it cloud vendor independent so that people who are working on a different cloud can also learn it. You can use a terminal locally or on a virtual machine or virtualbox , multipass etc.
@printdevismitasahoo14076 ай бұрын
@@TechTutorialswithPiyush can you add UPI payment method for channel membership payment
@kanikv44806 ай бұрын
Thank you a lot sir.❤❤❤
@TechTutorialswithPiyush6 ай бұрын
Welcome
@nikhildubba93876 ай бұрын
Thank you so much! Awesome content
@TechTutorialswithPiyush6 ай бұрын
Thanks
@gibrankhan82324 ай бұрын
Nicely explained
@TechTutorialswithPiyush4 ай бұрын
Thank you so much 🙂
@nithinprabhakar65836 ай бұрын
Day 02 Amazing 🐫
@TechTutorialswithPiyush6 ай бұрын
Thank you so much
@khznm21745 ай бұрын
great, this is the first time i did a docker exercise
@TechTutorialswithPiyush5 ай бұрын
Don't stop now 🚀
@daodusunday12346 ай бұрын
Very Educative. Thank You Sir
@TechTutorialswithPiyush6 ай бұрын
You are welcome, glad it was helpful!
@rajbir_singh05174 ай бұрын
it is great session.. you are awesome
@TechTutorialswithPiyush4 ай бұрын
Glad you enjoyed it 😄
@karnajeetsawant56356 ай бұрын
Exciteddd!!! Can't Wait..
@TechTutorialswithPiyush6 ай бұрын
Thanks a lot 😊
@SinaTavakkol6 ай бұрын
Hello and thanks for the video, we can use multi-staging for reducing the volume of an image!
@TechTutorialswithPiyush6 ай бұрын
Hello Sina, that is absolutely correct. Thank you
@ashwinr49016 ай бұрын
Great thanks for the clear explanations
@TechTutorialswithPiyush6 ай бұрын
You're welcome buddy!
@vishtaralekar6 ай бұрын
Clear to understand, Thank you.
@TechTutorialswithPiyush6 ай бұрын
You're welcome!
@Mr.Ash-cz9rf3 ай бұрын
Good, and clear explaination, Thanks for the vedio. To explore it in details could you suggest me any books for containerize application.
@TechTutorialswithPiyush3 ай бұрын
If you want to go deep into it, follow the official documentation after this
@christober.s70066 ай бұрын
Done and shared the task
@TechTutorialswithPiyush6 ай бұрын
Amazing, well done buddy
@SandeepChikkala-i4s3 ай бұрын
WEll Explained 🙌🙌
@GowthamKumar-vf9qcАй бұрын
Thak you Bro 🥰
@TechTutorialswithPiyushАй бұрын
You're welcome! Happy to help. 🚀
@Audi888354 ай бұрын
Thanks piyush 👍
@TechTutorialswithPiyush4 ай бұрын
Welcome 😊
@salmanbintariq0076 ай бұрын
Always tag your images with a clear, version-specific tag like `repo/image:v1`. This helps you track changes and makes it easy to roll back to previous versions if needed. Avoid using the `latest` tag because it can be unclear which version you are running, making it harder to debug issues and ensure consistency across different environments.
@TechTutorialswithPiyush6 ай бұрын
Great job!
@helloHabibDotCom6 ай бұрын
Thank you for publishing the valuable course. It would be better if you make the main display screen (where u actually code) larger so that we can see the main content more clearly.
@TechTutorialswithPiyush6 ай бұрын
Thank you for the feedback. Point noted.
@ROHITKUMAR-ym2bj6 ай бұрын
best video sir
@TechTutorialswithPiyush6 ай бұрын
Thank you so much Rohit!
@floehden6 ай бұрын
Thank you for this Video!
@TechTutorialswithPiyush6 ай бұрын
My pleasure!
@artbart90806 ай бұрын
Very informative!Thanks you!
@TechTutorialswithPiyush6 ай бұрын
You're welcome
@tvvuday3 ай бұрын
For reducing image size, we can go with Docker multistage build.
@TechTutorialswithPiyush3 ай бұрын
Correct ✅
@SamsonAruna-pp2se6 ай бұрын
Clearly explained.
@TechTutorialswithPiyush6 ай бұрын
Thanks
@KsChina4 ай бұрын
Struggled a bit with docker, docker desktop, and docker hub authentication on my linux box. Ended up uninstalling and reinstalling docker desktop. Now we're getting back to it.
@TechTutorialswithPiyush4 ай бұрын
Awesome, we use things, we break it and then we fix it, That's how we learn 👍💪
@jensenjose6826 ай бұрын
We can use multi-stage Dockerfile to reduce the size of the docker image.
@TechTutorialswithPiyush6 ай бұрын
That's absolutely correct
@IrshadAli-xv5ip5 ай бұрын
thank you sir ❤❤
@TechTutorialswithPiyush5 ай бұрын
Most welcome
@debillion6 ай бұрын
To make it smaller, remove all those "noise" like the node_modules that are irrelevant to the image. To remove them, you can use the dockerignore. that is, create new new file called dockerignore and place those irrelevants files inside.
@TechTutorialswithPiyush6 ай бұрын
Dockerignore is one way of excluding the irrelevant files, and docker multi-stage build helps a lot to reduce the image size.
@AndeSahith6 ай бұрын
very informative, thanks.
@TechTutorialswithPiyush6 ай бұрын
Thank you
@sudarsansai42156 ай бұрын
Informative
@TechTutorialswithPiyush6 ай бұрын
Thank you!
@MarketLakeАй бұрын
Super
@kubedigitalhub6 ай бұрын
Thank you
@TechTutorialswithPiyush6 ай бұрын
You're welcome!
@foehn236 ай бұрын
Thank you very much for the tutorials. Unfortunately, I have run into an installation problem with Docker. I receive this error when opening the installer. "We've detected that you have an incompatible version of Windows. Docker Desktop requires Windows 10 Pro/Enterprise/Home version 19044 or above. To continue with the installation, upgrade Windows to a supported version and then re-run the installer." Would you happen to know how to solve this? I have looked everywhere online and cannot find a solution.
@TechTutorialswithPiyush6 ай бұрын
Yeah if you are running older versions of Windows, you might run into compatibility issues. I would suggest to install a Linux VM using virtualbox or vagrant and use that.
@sahiyadri26116 ай бұрын
Sir if possible please keep the working windows size bigger than other window, always need to zoom while learning.. Content is gr8
@TechTutorialswithPiyush6 ай бұрын
Will do, thank you
@onkarcharkupalli66116 ай бұрын
Awesome and clear explanations. Built and published image using windows with docker desktop and wsl. Got a doubt, if "WORKDIR /app" is similar to cd app, so the next command -> "COPY . ." would it run inside the app dir right? Or please correct me if I am wrong. Thank you
@TechTutorialswithPiyush6 ай бұрын
WORKDIR would make the /app directory as the home directory of the container. COPY . . ( First dot is the current directory content and second dot is the workdir inside the container) Hope it helps
@onkarcharkupalli66116 ай бұрын
@@TechTutorialswithPiyush Helpful!
@roostgaming2256 ай бұрын
Amazing 🔥
@TechTutorialswithPiyush6 ай бұрын
Glad you like it! Thank you
@BHAGI55556 ай бұрын
TIME STAMP 22:10 after getting build , how the docker desktop (images) showing local repo , didn't even yet logged in to docker right
@TechTutorialswithPiyush6 ай бұрын
No I was already logged in
@sagarbirla28796 ай бұрын
it provides me a lot of celerity in Docker
@TechTutorialswithPiyush6 ай бұрын
Amazing! Thanks for letting me know.
@mohdshahzad53326 ай бұрын
we can use docker-compose for reduce the size
@mohdshahzad53326 ай бұрын
mast video majja aagaya reeally👍
@TechTutorialswithPiyush6 ай бұрын
No docker compose is used to simplify the container management when there are multiple containers, it doesnt help reducing the size. Checkout the day3 video for the answer.
@TechTutorialswithPiyush6 ай бұрын
Thanks bro
@mohdshahzad53326 ай бұрын
@@TechTutorialswithPiyushokay thanks for simply explanation
@sudheerdutt18796 ай бұрын
nice sir
@TechTutorialswithPiyush6 ай бұрын
Thanks
@chandanravandurn762423 күн бұрын
thanks
@christober.s70066 ай бұрын
I think for reducing the sizing of image we can use multi statge build which means using multiple FROM
@TechTutorialswithPiyush6 ай бұрын
Spot on! Next video is about multistage builds.
@girishk11425 ай бұрын
awesome :)))))
@vaibhavjain1inАй бұрын
Hi Piyush, I can't download docker hub on my laptop as it is work laptop, what are the other options? should I download on any Linux machine on ec2?
@TechTutorialswithPiyushАй бұрын
I guess you meant Docker desktop, Yes you can try on ec2
@khznm21745 ай бұрын
how to get to this terminal , i tried command prompt , git cmd , wsl cli ,,, i dont see the terminal icon on docker window
@TechTutorialswithPiyush5 ай бұрын
That is present only on mac. You can use gitbash if you are on windows or install a Linux Virtual machine such as Ubuntu
@palashsarate2802 ай бұрын
Should webpack be used to reduce the size of app ?
@TechTutorialswithPiyush2 ай бұрын
webpack is used specifically for JS and it bundles the asset together, wont help you with the image size, next video will have the answer to this question.
@JJ159826 ай бұрын
Lets go Piyush I am excited!! first comment here
@TechTutorialswithPiyush6 ай бұрын
Thank you so much 😊🙏
@adityapradhan20256 ай бұрын
i just have one doubt writing and remembering all the binaries looks like a tough job because we cant remember all the binaries! so while writing dockerfiles should we memorize it or just search on the internet for the commands?
@TechTutorialswithPiyush6 ай бұрын
That's true we cannot memorize all the binaries and all the steps especially if you are not the developer of that project and most of the times this list is too large to remember. However, you would be aware of all these when you have worked on the development of the project. That is why I mentioned that creating the dockerfile is responsibility of a developer. We are basically writing all the steps that we have taken to build and application into a dockerfile to automate the build and packaging process. dockefile is a file that contains step by step instructions to compile an app, install dependencies, package it and make it ready to be shipped. I hope this answered your question.
@adityapradhan20256 ай бұрын
@@TechTutorialswithPiyush yes sir! I got it. Thanks a ton! ❤️
@nousheensafoora2063 ай бұрын
day-2 completed
@TechTutorialswithPiyush3 ай бұрын
Great
@girdhar32246 ай бұрын
Man I don't even know js very well But im learning docker because the videos is so enthusiastic that it makes me concentrate with all eyes and ears
@TechTutorialswithPiyush6 ай бұрын
I did not focus much on the application code as I am not a developer and the course is not focused from development point of view. I am glad that you found the video interesting :)
@JohnFranklin556 ай бұрын
in the section of the Dockerfile: COPY . . same as COPY . /app
@TechTutorialswithPiyush6 ай бұрын
That is correct
@pushppreetsingh71852 ай бұрын
Getting below error while building DockerImage ERROR: failed to solve: process "/bin/sh -c yarn install --production --ignore-engines" did not complete successfully: exit code: 1
@TechTutorialswithPiyush2 ай бұрын
I am sure sure what you have done, can you share the dockerfile and code repo in our discord server along with the steps you have performed including the commands?
@omkarmorbale59325 ай бұрын
which terminal to use in case of Docker installed in windows?
@TechTutorialswithPiyush5 ай бұрын
You can use wsl on windows or try gitbash but I would recommend installing an Ubuntu virtual machine.
@omkarmorbale59325 ай бұрын
@@TechTutorialswithPiyush I will try this
@Devopsandcloudhub6 ай бұрын
sir I am using docker desktop there is a container dangling stage please explain it
@TechTutorialswithPiyush6 ай бұрын
a dangling image just means that you've created the new build of the image, but it wasn't given a new name. So the old images you have becomes the "dangling image". Those old image are the ones that are untagged and displays "" on its name when you run docker images. When running docker system prune -a, it will remove all stopped containers, images and networks without a container associated, and build cache. Be Careful!
@amitmitra89075 ай бұрын
Docker hub is not using in industry due to security issue , Pls puts some light where industry acceptance mechanism is being used .
@TechTutorialswithPiyush5 ай бұрын
I totally agree with you that docker hub is not industry standard however, the playlist was designed from a beginner's perspective so I had to start with dockerhub. In the end we will also be self hosting a container registry. The other thing to remember, docker enterprise offers a self hosting option with enterprise support, which is an industry standard.
@mohanmurali79755 ай бұрын
Hi sir when to use bash and sh to exec into the container??
@TechTutorialswithPiyush5 ай бұрын
It depends on the container image, most of the Linux based images have sh and some have bash, you can use according to that
@Nareshmanam4586 ай бұрын
waitng for 2nd video
@TechTutorialswithPiyush6 ай бұрын
almost the time
@Travelwithakki0074 ай бұрын
Hello can someone let me know were we need run this command ? are you running this command in Linux ?
@TechTutorialswithPiyush4 ай бұрын
I'm using a macbook which comes with an inbuilt terminal. If you are on windows, you can install gitbash or I'd recommend doing it on Ubuntu machine
@khaleel_sheikh6 ай бұрын
I have one doubt, how can we connect to the windows terminal and execute docker related commands.
@TechTutorialswithPiyush6 ай бұрын
Install gitbash
@bhushanofficial61533 ай бұрын
Hi Piyush , i had one question . i wanted to know that is this only for certification purpose ? I'm fresher working in MNC as Devops engineer. is this useful for me ? to understand the containerization and Kubernetes
@TechTutorialswithPiyush3 ай бұрын
Hello Bhushan, This is not just for certification however, it covers certification as well. The series is someone who is a beginner to Kubernetes and covers the topics from beginner to intermediate level. I will be adding more videos to the playlist soon. Yes, it will be surely helpful for any DevOps/Cloud Engineer
@moinkhanpathan60665 ай бұрын
Are you using a linux machine because i am trying the same in windows and the commands are not working or does docker have a diffrent command prompt terminal
@TechTutorialswithPiyush5 ай бұрын
I'm using a Mac terminal but you can use a Linux machine or WSL on Windows. I'd recommend Linux
@vm_naveen6 ай бұрын
We can write multi-stage Docker file and make use of runtime !
@TechTutorialswithPiyush6 ай бұрын
Absolutely correct!
@Gade4552 ай бұрын
Am using docker desktop on my windows machines and $ this doesnt work. I created directories withoutusing it and now the touch command is not working with error:$touch Dockerfile | ~~~~~~~~~~
@TechTutorialswithPiyush2 ай бұрын
touch is a linux command and wouldnt work on Windows. I'd suggest learning Linux first before directly jumping into Docker/Kubernetes. Get some hands on experience with Linux, and then you can either install Linux or WSL to practise it
@johnk82866 ай бұрын
Day 2 .. are u using the CMD prompt ?
@TechTutorialswithPiyush6 ай бұрын
I am using Mac terminal but if you are on windows, you can use gitbash