Тёмный

Day 2/40 - How To Dockerize a Project - CKA Full Course 2024 

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

With this comprehensive course, let's begin the journey to becoming a Certified Kubernetes Administrator (CKA)! Day 2 of 40 lays the groundwork for Kubernetes mastery by diving into further docker concepts, such as dockerizing a project using docker containers.
In this video, you'll learn:
✍️ Dockerfile Demystified: We'll break down the concept of a Dockerfile, its syntax, and how to write one effectively.
✍️ Dockerizing Your Application: We'll walk you through containerizing your application step-by-step, using essential Docker commands. ️
✍️Docker Command Breakdown: Each Docker command will be explained in detail, ensuring you grasp their purpose and functionality within the containerization process.
✍️ Essential Docker Commands: Master the most commonly used commands to manage containers effectively.
Why Docker is a Pre-Requisite for Kubernetes: Grasp the connection and why understanding Docker is crucial.
🚀 Reinforce your knowledge with practical tasks in the Day 2 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 #techtutorialswithpiyush
How To Dockerize a Project
cka full course 2024

Наука

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

 

17 июн 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 175   
@strangemate
@strangemate 2 дня назад
lovely video, thanks
@PraveenKumar-DevOps
@PraveenKumar-DevOps Месяц назад
Your explanations are clear, and the content is super valuable. For reduce the size, we will use multi-stage builds. waiting for next video.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Awesome, thank you for the correct answer! Yes, that's what we will be doing in the next video tomorrow.
@nope-ms4rx
@nope-ms4rx 19 дней назад
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.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 19 дней назад
I appreciate that!
@pranay_vlogs_20
@pranay_vlogs_20 17 дней назад
very cool tutorial and with neat explanation.
@TravellingSquad
@TravellingSquad Месяц назад
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.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
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 :)
@girishk1142
@girishk1142 10 дней назад
awesome :)))))
@Ethiofunnyshortvideos
@Ethiofunnyshortvideos 22 дня назад
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 🏃‍♂🏃‍♂🏃‍♂🏃‍♂🏃‍♂🏃‍♂🏃‍♂
@TechTutorialswithPiyush
@TechTutorialswithPiyush 22 дня назад
I am glad that you found it helpful! Let's go with the next one!
@saheedabdulrahman2536
@saheedabdulrahman2536 Месяц назад
Smoothly delivered. Kudos
@karnajeetsawant5635
@karnajeetsawant5635 Месяц назад
Exciteddd!!! Can't Wait..
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thanks a lot 😊
@Nazrulislam13
@Nazrulislam13 Месяц назад
Thank you for your hard work; this series is absolutely fantastic!
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
You're very welcome!
@helloHabibDotCom
@helloHabibDotCom Месяц назад
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.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you for the feedback. Point noted.
@sahiyadri2611
@sahiyadri2611 Месяц назад
Sir if possible please keep the working windows size bigger than other window, always need to zoom while learning.. Content is gr8
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Will do, thank you
@ojosamuel3777
@ojosamuel3777 Месяц назад
Awesome content. Waiting for the next !!! Great work
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thanks a ton, next video tomorrow.
@vinaykumar-qq9wq
@vinaykumar-qq9wq Месяц назад
Excellent take-off. keep up the good work for community. Looking forward for docker multi stage builds.👏👏👏 @TechTutorialswithPiyush
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you for the feedback! Yes, let's move forward with the next video.
@somenghosh4163
@somenghosh4163 Месяц назад
Just wow .. what an explaination and rich content !! Thanks Piyush. Will share it in other platform to make it reach to wider community.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you so much buddy! I truly appreciate it
@prasad_yt
@prasad_yt Месяц назад
Clear and crisp !✅
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you so much
@vishtaralekar
@vishtaralekar Месяц назад
Clear to understand, Thank you.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
You're welcome!
@floehden
@floehden Месяц назад
Thank you for this Video!
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
My pleasure!
@artbart9080
@artbart9080 Месяц назад
Very informative!Thanks you!
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
You're welcome
@siddharthsingh9253
@siddharthsingh9253 Месяц назад
Thank you
@nikhildubba9387
@nikhildubba9387 Месяц назад
Thank you so much! Awesome content
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thanks
@girdhar3224
@girdhar3224 Месяц назад
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
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
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 :)
@KRISHNAKUMAR-yj3dx
@KRISHNAKUMAR-yj3dx Месяц назад
Awesome series!!!! Thanks a lot for detailed explanation!!!!!
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
You're welcome
@ashwinr4901
@ashwinr4901 Месяц назад
Great thanks for the clear explanations
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
You're welcome buddy!
@johnpaulden007
@johnpaulden007 Месяц назад
Following.. much appreciated you posting the content now !! In depth explanation.. !!
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
My pleasure!
@user-ud6zh3ms2q
@user-ud6zh3ms2q Месяц назад
very informative, thanks.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you
@LaxmiAdavalli-o5k
@LaxmiAdavalli-o5k 18 дней назад
Well explained.. Enjoying while learning😊
@TechTutorialswithPiyush
@TechTutorialswithPiyush 18 дней назад
Thanks for liking!
@roostgaming225
@roostgaming225 Месяц назад
Amazing 🔥
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Glad you like it! Thank you
@krishnaprasath-jh5gb
@krishnaprasath-jh5gb Месяц назад
Thanks for the day 2 video sir it was helpfull. Cheers to new learnings
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Awesome! Thanks for the feedback!
@HimaniChauhan-rm1fb
@HimaniChauhan-rm1fb Месяц назад
Your explanations are relatable and easy to understand. The content is truly impressive.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you so much! I am glad you found it helpful.
@debillion
@debillion Месяц назад
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.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Dockerignore is one way of excluding the irrelevant files, and docker multi-stage build helps a lot to reduce the image size.
@kanikv4480
@kanikv4480 Месяц назад
Thank you a lot sir.❤❤❤
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Welcome
@SamsonAruna-pp2se
@SamsonAruna-pp2se Месяц назад
Clearly explained.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thanks
@rishavkushwah9157
@rishavkushwah9157 Месяц назад
Awesome Thank you sir , now I can say I am really learning the docker
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Let's go 🚀💪
@printdevismitasahoo1407
@printdevismitasahoo1407 Месяц назад
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.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
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.
@printdevismitasahoo1407
@printdevismitasahoo1407 Месяц назад
@@TechTutorialswithPiyush can you add UPI payment method for channel membership payment
@abhaytalole5138
@abhaytalole5138 5 дней назад
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.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 5 дней назад
Good job
@christober.s7006
@christober.s7006 Месяц назад
Done and shared the task
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Amazing, well done buddy
@daodusunday1234
@daodusunday1234 Месяц назад
Very Educative. Thank You Sir
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
You are welcome, glad it was helpful!
@ROHITKUMAR-ym2bj
@ROHITKUMAR-ym2bj Месяц назад
best video sir
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you so much Rohit!
@sudarsansai4215
@sudarsansai4215 Месяц назад
Informative
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you!
@Nareshmanam458
@Nareshmanam458 Месяц назад
waitng for 2nd video
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
almost the time
@nithinprabhakar6583
@nithinprabhakar6583 Месяц назад
Day 02 Amazing 🐫
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you so much
@SinaTavakkol
@SinaTavakkol Месяц назад
Hello and thanks for the video, we can use multi-staging for reducing the volume of an image!
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Hello Sina, that is absolutely correct. Thank you
@jensenjose682
@jensenjose682 Месяц назад
We can use multi-stage Dockerfile to reduce the size of the docker image.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
That's absolutely correct
@sudheerdutt1879
@sudheerdutt1879 Месяц назад
nice sir
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thanks
@sagarbirla2879
@sagarbirla2879 Месяц назад
it provides me a lot of celerity in Docker
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Amazing! Thanks for letting me know.
@niksojitra
@niksojitra Месяц назад
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.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
That's absolutely correct!
@onkarcharkupalli6611
@onkarcharkupalli6611 Месяц назад
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
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
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
@onkarcharkupalli6611
@onkarcharkupalli6611 Месяц назад
@@TechTutorialswithPiyush Helpful!
@JJ15982
@JJ15982 Месяц назад
Lets go Piyush I am excited!! first comment here
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you so much 😊🙏
@JohnFranklin55
@JohnFranklin55 Месяц назад
in the section of the Dockerfile: COPY . . same as COPY . /app
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
That is correct
@christober.s7006
@christober.s7006 Месяц назад
I think for reducing the sizing of image we can use multi statge build which means using multiple FROM
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Spot on! Next video is about multistage builds.
@techrohhit
@techrohhit Месяц назад
Multi stage docker build
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Good one
@anuraggupta1008
@anuraggupta1008 Месяц назад
Day 2. ❤☕
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
☕️
@vm_naveen
@vm_naveen Месяц назад
We can write multi-stage Docker file and make use of runtime !
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Absolutely correct!
@amitmitra8907
@amitmitra8907 5 дней назад
Docker hub is not using in industry due to security issue , Pls puts some light where industry acceptance mechanism is being used .
@TechTutorialswithPiyush
@TechTutorialswithPiyush 5 дней назад
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.
@uttamsharma9042
@uttamsharma9042 Месяц назад
Hello Sir
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Hello Buddy!
@saurabhjain374
@saurabhjain374 Месяц назад
waiting for 2nd video
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
almost the time
@foehn23
@foehn23 26 дней назад
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.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 25 дней назад
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.
@adityapradhan2025
@adityapradhan2025 29 дней назад
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?
@TechTutorialswithPiyush
@TechTutorialswithPiyush 29 дней назад
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.
@adityapradhan2025
@adityapradhan2025 29 дней назад
@@TechTutorialswithPiyush yes sir! I got it. Thanks a ton! ❤️
@daodusunday1234
@daodusunday1234 Месяц назад
Day 2
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Lets go!
@mohdshahzad5332
@mohdshahzad5332 Месяц назад
we can use docker-compose for reduce the size
@mohdshahzad5332
@mohdshahzad5332 Месяц назад
mast video majja aagaya reeally👍
@TechTutorialswithPiyush
@TechTutorialswithPiyush 29 дней назад
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.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 29 дней назад
Thanks bro
@mohdshahzad5332
@mohdshahzad5332 29 дней назад
@@TechTutorialswithPiyushokay thanks for simply explanation
@salmanbintariq007
@salmanbintariq007 Месяц назад
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.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Great job!
@abhivishwavlogs
@abhivishwavlogs Месяц назад
​​sir I am using docker desktop there is a container dangling stage please explain it
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
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!
@omkarmorbale5932
@omkarmorbale5932 14 часов назад
which terminal to use in case of Docker installed in windows?
@TechTutorialswithPiyush
@TechTutorialswithPiyush 13 часов назад
You can use wsl on windows or try gitbash but I would recommend installing an Ubuntu virtual machine.
@omkarmorbale5932
@omkarmorbale5932 13 часов назад
@@TechTutorialswithPiyush I will try this
@JohnFranklin55
@JohnFranklin55 Месяц назад
multi-stages docker build
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Spot on!
@mohanmurali7975
@mohanmurali7975 10 дней назад
Hi sir when to use bash and sh to exec into the container??
@TechTutorialswithPiyush
@TechTutorialswithPiyush 10 дней назад
It depends on the container image, most of the Linux based images have sh and some have bash, you can use according to that
@BHAGI5555
@BHAGI5555 Месяц назад
TIME STAMP 22:10 after getting build , how the docker desktop (images) showing local repo , didn't even yet logged in to docker right
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
No I was already logged in
@sundaydaodu1234
@sundaydaodu1234 Месяц назад
All the command should be running on the window terminal
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
If you are using Windows, you can use gitbash
@joethomas5122
@joethomas5122 Месяц назад
Multi stage build
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Spot on!
@sagarmaske8761
@sagarmaske8761 Месяц назад
Docker compose
@johnk8286
@johnk8286 Месяц назад
Day 2 .. are u using the CMD prompt ?
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
I am using Mac terminal but if you are on windows, you can use gitbash
@khaleel_sheikh
@khaleel_sheikh Месяц назад
I have one doubt, how can we connect to the windows terminal and execute docker related commands.
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Install gitbash
@moinkhanpathan6066
@moinkhanpathan6066 3 дня назад
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
@TechTutorialswithPiyush
@TechTutorialswithPiyush 3 дня назад
I'm using a Mac terminal but you can use a Linux machine or WSL on Windows. I'd recommend Linux
@madhavamsaxena2860
@madhavamsaxena2860 Месяц назад
Multistage docker images
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Spot on!
@Aza.dChaiwala
@Aza.dChaiwala День назад
I ran the docker build command but i always get error when it gets to the run stage, why?
@Aza.dChaiwala
@Aza.dChaiwala День назад
The run yarn command shows error
@TechTutorialswithPiyush
@TechTutorialswithPiyush День назад
what error? there might be some issues with the dockerfile
@Aza.dChaiwala
@Aza.dChaiwala День назад
@@TechTutorialswithPiyush I created the same same docker file as u, then when i run the command when it gets to run yarn stage it returns error
@TechTutorialswithPiyush
@TechTutorialswithPiyush День назад
@@Aza.dChaiwala Bro without knowing the error no one can help me, share the error
@Aza.dChaiwala
@Aza.dChaiwala День назад
@@TechTutorialswithPiyush => ERROR [4/4] RUN yarn install --production
@SiddeshK.R.-wq9ee
@SiddeshK.R.-wq9ee Месяц назад
what is "yarn"?
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
It is a package manager just like npm. We use it to install dependencies, compile and package the code into build.
@pummysolanki5025
@pummysolanki5025 Месяц назад
Hello Sir, why do we use Docker tag ?
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
That's a really good question. I should have explained this. Before pushing the image to any repo we need to add a few details to the image such as tag prefix and suffix. If you are using docker hub repository then you tag it with reponame/imagename:tag where tag could be the commitid, sha , build id or anything relevant. If you have multiple environments then you tag the images based on the environment for which you would like to use that image. The same image should go to all the environment but we tag them seperately for instance, the image is deployed in dev then we tag it as dev-tested and then it is ready to be deployed in uat, once it is tested in uat, you tag it as uat-tested and then it is ready to go to prod. And you can use seperate repositories for seperate environment but you are actually promoting the same image from one repo to another as per their release status. I hope this answered your question.
@pummysolanki5025
@pummysolanki5025 Месяц назад
@@TechTutorialswithPiyush It’s great 😊 thank u Also one more thing, will it be sufficient for appearing to CLA exam, and anything else required to go through then please guide us that too 🙏😊
@Anonymous_810
@Anonymous_810 Месяц назад
Cfbr
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Thank you!
@prthmsh2930
@prthmsh2930 Месяц назад
dockerignore
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Yes forgot that, actually there are many more commands but it was just the basic docker intro, I will include them in the Github repo. Thanks for pointing it out
@hanhtikesoe1777
@hanhtikesoe1777 Месяц назад
@siphokazidolo
@siphokazidolo Месяц назад
.dockerignore
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Dockerignore is one way of excluding the irrelevant files, and docker multi-stage build helps a lot to reduce the image size.
@user-ic5ht4in4m
@user-ic5ht4in4m Месяц назад
Thank you
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
Welcome
@kubedigitalhub
@kubedigitalhub Месяц назад
Thank you
@TechTutorialswithPiyush
@TechTutorialswithPiyush Месяц назад
You're welcome!
Далее
Викторина от ПАПЫ 🆘 | WICSUR #shorts
00:56