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

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ม.ค. 2025

ความคิดเห็น • 251

  • @abhaytalole5138
    @abhaytalole5138 5 หลายเดือนก่อน +11

    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.

  • @shaileshYadav-l8s
    @shaileshYadav-l8s 2 วันที่ผ่านมา

    Thank you very much for explaining docker in very easy way with each and every line in details

  • @matinpathan5186
    @matinpathan5186 5 หลายเดือนก่อน +9

    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

  • @shubhamgawas87
    @shubhamgawas87 5 หลายเดือนก่อน +4

    FYI for all, 11:30
    lts - long term support
    latest - latest image
    great series sir !

  • @nope-ms4rx
    @nope-ms4rx 6 หลายเดือนก่อน +4

    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.

  • @aleahembley8466
    @aleahembley8466 4 หลายเดือนก่อน +2

    Im moving from IT 3rd line service desk to cloud engineering! This is super helpful ❤ Thank you!

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  4 หลายเดือนก่อน

      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

  • @PraveenKumar-DevOps
    @PraveenKumar-DevOps 7 หลายเดือนก่อน +5

    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  7 หลายเดือนก่อน +2

      Awesome, thank you for the correct answer! Yes, that's what we will be doing in the next video tomorrow.

  • @sreenivasannagarajan6284
    @sreenivasannagarajan6284 9 วันที่ผ่านมา +1

    Thanks Piyush. These sessions are indeed very helpful. I just wanted to add quick note for Windows users. In order to follow along for most of the commands that are shown and used in Mac OS command shell, they can download and 'Git Bash' and this shell can be opened in VS Code, Terminal tab. Thanks again!

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  8 วันที่ผ่านมา

      Thank you for sharing! Yes, absolutely, GitBash, WSL, Vs code anything would work.

  • @Nazrulislam13
    @Nazrulislam13 6 หลายเดือนก่อน +1

    Thank you for your hard work; this series is absolutely fantastic!

  • @HimaniChauhan-rm1fb
    @HimaniChauhan-rm1fb 7 หลายเดือนก่อน

    Your explanations are relatable and easy to understand. The content is truly impressive.

  • @thewanderlustride
    @thewanderlustride 5 หลายเดือนก่อน

    nice way of explaining. I really liked the step by step way to perform all the exercises. Enjoying the sessions!

  • @suraganimaheshkumar2805
    @suraganimaheshkumar2805 4 หลายเดือนก่อน +1

    Sir, You are doing a good service. Thanks Alot🙏🏼

  • @KRISHNAKUMAR-yj3dx
    @KRISHNAKUMAR-yj3dx 7 หลายเดือนก่อน +1

    Awesome series!!!!
    Thanks a lot for detailed explanation!!!!!

  • @pranay_vlogs_20
    @pranay_vlogs_20 6 หลายเดือนก่อน +1

    very cool tutorial and with neat explanation.

  • @krishnaprasath-jh5gb
    @krishnaprasath-jh5gb 7 หลายเดือนก่อน +1

    Thanks for the day 2 video sir it was helpfull. Cheers to new learnings

  • @Greaterbangalore1
    @Greaterbangalore1 2 หลายเดือนก่อน +1

    You're simply great bro !

  • @johnpaulden007
    @johnpaulden007 7 หลายเดือนก่อน

    Following.. much appreciated you posting the content now !! In depth explanation.. !!

  • @varunjoshi4410
    @varunjoshi4410 3 หลายเดือนก่อน +1

    Great stuff brother!

  • @GrigTech
    @GrigTech 3 หลายเดือนก่อน +1

    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

  • @karthikkrishna305
    @karthikkrishna305 2 หลายเดือนก่อน

    You are Amazing bro! Keep up the good work!

  • @vinaykumar-qq9wq
    @vinaykumar-qq9wq 6 หลายเดือนก่อน +1

    Excellent take-off. keep up the good work for community.
    Looking forward for docker multi stage builds.👏👏👏
    @TechTutorialswithPiyush

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  6 หลายเดือนก่อน

      Thank you for the feedback! Yes, let's move forward with the next video.

  • @LaxmiAdavalli-o5k
    @LaxmiAdavalli-o5k 6 หลายเดือนก่อน +1

    Well explained.. Enjoying while learning😊

  • @aparajitadas2673
    @aparajitadas2673 5 หลายเดือนก่อน

    Excellent explanation and hand holding practice

  • @Ethiofunnyshortvideos
    @Ethiofunnyshortvideos 6 หลายเดือนก่อน +1

    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  6 หลายเดือนก่อน

      I am glad that you found it helpful! Let's go with the next one!

  • @venkatg-o4h
    @venkatg-o4h 5 หลายเดือนก่อน +1

    Excellent content to start. Thank you Piyush

  • @SherazKhan94
    @SherazKhan94 หลายเดือนก่อน +1

    You are amazing Piyush!

  • @ojosamuel3777
    @ojosamuel3777 7 หลายเดือนก่อน

    Awesome content. Waiting for the next !!! Great work

  • @somenghosh4163
    @somenghosh4163 7 หลายเดือนก่อน

    Just wow .. what an explaination and rich content !! Thanks Piyush. Will share it in other platform to make it reach to wider community.

  • @TravellingSquad
    @TravellingSquad 7 หลายเดือนก่อน +1

    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  7 หลายเดือนก่อน +2

      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 :)

  • @saheedabdulrahman2536
    @saheedabdulrahman2536 6 หลายเดือนก่อน

    Smoothly delivered. Kudos

  • @mike4485
    @mike4485 4 หลายเดือนก่อน +1

    Great session .. Thank you

  • @Risabhmewara
    @Risabhmewara 5 หลายเดือนก่อน

    Awesome Piyush !! Great Details and Teaching...Really Excellent &Awesome

  • @nikhildubba9387
    @nikhildubba9387 7 หลายเดือนก่อน +1

    Thank you so much! Awesome content

  • @gokulprasathnandhakumar8313
    @gokulprasathnandhakumar8313 หลายเดือนก่อน

    Day -2 completed, for me, it was hard to understand and remember commands but I successfully created my first docker image and container.

  • @niksojitra
    @niksojitra 7 หลายเดือนก่อน +1

    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.

  • @daodusunday1234
    @daodusunday1234 7 หลายเดือนก่อน +2

    Very Educative. Thank You Sir

  • @prasad_yt
    @prasad_yt 7 หลายเดือนก่อน

    Clear and crisp !✅

  • @strangemate
    @strangemate 5 หลายเดือนก่อน +1

    lovely video, thanks

  • @rishavkushwah21
    @rishavkushwah21 7 หลายเดือนก่อน

    Awesome Thank you sir , now I can say I am really learning the docker

  • @foehn23
    @foehn23 6 หลายเดือนก่อน +1

    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  6 หลายเดือนก่อน +1

      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.

  • @kanikv4480
    @kanikv4480 7 หลายเดือนก่อน +1

    Thank you a lot sir.❤❤❤

  • @vishtaralekar
    @vishtaralekar 7 หลายเดือนก่อน

    Clear to understand, Thank you.

  • @gibrankhan8232
    @gibrankhan8232 5 หลายเดือนก่อน +1

    Nicely explained

  • @ashwinr4901
    @ashwinr4901 7 หลายเดือนก่อน

    Great thanks for the clear explanations

  • @artbart9080
    @artbart9080 7 หลายเดือนก่อน

    Very informative!Thanks you!

  • @abhijitdash9780
    @abhijitdash9780 หลายเดือนก่อน

    today I completed day02 and It's so amazing.

  • @vaibhavjain1in
    @vaibhavjain1in 2 หลายเดือนก่อน +1

    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
      @TechTutorialswithPiyush  2 หลายเดือนก่อน

      I guess you meant Docker desktop, Yes you can try on ec2

  • @floehden
    @floehden 7 หลายเดือนก่อน

    Thank you for this Video!

  • @onkarcharkupalli6611
    @onkarcharkupalli6611 7 หลายเดือนก่อน +1

    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  7 หลายเดือนก่อน +1

      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 6 หลายเดือนก่อน

      @@TechTutorialswithPiyush Helpful!

  • @rajbir_singh0517
    @rajbir_singh0517 5 หลายเดือนก่อน

    it is great session.. you are awesome

  • @adityapradhan2025
    @adityapradhan2025 6 หลายเดือนก่อน +2

    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  6 หลายเดือนก่อน +1

      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 6 หลายเดือนก่อน

      @@TechTutorialswithPiyush yes sir! I got it. Thanks a ton! ❤️

  • @karnajeetsawant5635
    @karnajeetsawant5635 7 หลายเดือนก่อน

    Exciteddd!!! Can't Wait..

  • @khznm2174
    @khznm2174 5 หลายเดือนก่อน +1

    great, this is the first time i did a docker exercise

  • @Mr.Ash-cz9rf
    @Mr.Ash-cz9rf 3 หลายเดือนก่อน +1

    Good, and clear explaination, Thanks for the vedio. To explore it in details could you suggest me any books for containerize application.

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  3 หลายเดือนก่อน

      If you want to go deep into it, follow the official documentation after this

  • @khznm2174
    @khznm2174 5 หลายเดือนก่อน +1

    how to get to this terminal , i tried command prompt , git cmd , wsl cli ,,, i dont see the terminal icon on docker window

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  5 หลายเดือนก่อน

      That is present only on mac. You can use gitbash if you are on windows or install a Linux Virtual machine such as Ubuntu

  • @helloHabibDotCom
    @helloHabibDotCom 7 หลายเดือนก่อน

    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.

  • @printdevismitasahoo1407
    @printdevismitasahoo1407 7 หลายเดือนก่อน

    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  7 หลายเดือนก่อน

      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 7 หลายเดือนก่อน

      @@TechTutorialswithPiyush can you add UPI payment method for channel membership payment

  • @palashsarate280
    @palashsarate280 2 หลายเดือนก่อน +1

    Should webpack be used to reduce the size of app ?

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  2 หลายเดือนก่อน

      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.

  • @nithinprabhakar6583
    @nithinprabhakar6583 6 หลายเดือนก่อน +1

    Day 02 Amazing 🐫

  • @AndeSahith
    @AndeSahith 7 หลายเดือนก่อน

    very informative, thanks.

  • @pushppreetsingh7185
    @pushppreetsingh7185 3 หลายเดือนก่อน +1

    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

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  3 หลายเดือนก่อน

      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?

  • @amitmitra8907
    @amitmitra8907 5 หลายเดือนก่อน +1

    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.

  • @omkarmorbale5932
    @omkarmorbale5932 5 หลายเดือนก่อน +1

    which terminal to use in case of Docker installed in windows?

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  5 หลายเดือนก่อน

      You can use wsl on windows or try gitbash but I would recommend installing an Ubuntu virtual machine.

    • @omkarmorbale5932
      @omkarmorbale5932 5 หลายเดือนก่อน

      @@TechTutorialswithPiyush I will try this

  • @SinaTavakkol
    @SinaTavakkol 7 หลายเดือนก่อน

    Hello and thanks for the video, we can use multi-staging for reducing the volume of an image!

  • @GowthamKumar-vf9qc
    @GowthamKumar-vf9qc 2 หลายเดือนก่อน +1

    Thak you Bro 🥰

  • @salmanbintariq007
    @salmanbintariq007 6 หลายเดือนก่อน +6

    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.

  • @devopswithabhi07
    @devopswithabhi07 7 หลายเดือนก่อน +1

    ​​sir I am using docker desktop there is a container dangling stage please explain it

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  7 หลายเดือนก่อน +2

      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!

  • @christober.s7006
    @christober.s7006 7 หลายเดือนก่อน

    Done and shared the task

  • @SamsonAruna-pp2se
    @SamsonAruna-pp2se 7 หลายเดือนก่อน

    Clearly explained.

  • @SandeepChikkala-i4s
    @SandeepChikkala-i4s 4 หลายเดือนก่อน

    WEll Explained 🙌🙌

  • @IrshadAli-xv5ip
    @IrshadAli-xv5ip 5 หลายเดือนก่อน

    thank you sir ❤❤

  • @khaleel_sheikh
    @khaleel_sheikh 6 หลายเดือนก่อน

    I have one doubt, how can we connect to the windows terminal and execute docker related commands.

  • @roostgaming225
    @roostgaming225 7 หลายเดือนก่อน

    Amazing 🔥

  • @mohanmurali7975
    @mohanmurali7975 6 หลายเดือนก่อน

    Hi sir when to use bash and sh to exec into the container??

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  6 หลายเดือนก่อน +1

      It depends on the container image, most of the Linux based images have sh and some have bash, you can use according to that

  • @laramoninadeguzman1355
    @laramoninadeguzman1355 10 วันที่ผ่านมา

    Hello, what could be the problem when after following all instructions, the localhost:3000 using browser is inaccessible.. Is it because i only use docker playlabs?

    • @laramoninadeguzman1355
      @laramoninadeguzman1355 10 วันที่ผ่านมา

      i cannot access through browser but i was able to check via CLI using curl -I localhost:3000 and has successful response of 200 OK so it means it is working

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  10 วันที่ผ่านมา

      you need to expose the container on port 80
      -p 3000:80
      If you are using docker labs, you need to expose the port from there

  • @Audi88835
    @Audi88835 4 หลายเดือนก่อน +1

    Thanks piyush 👍

  • @moinkhanpathan6066
    @moinkhanpathan6066 5 หลายเดือนก่อน

    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  5 หลายเดือนก่อน

      I'm using a Mac terminal but you can use a Linux machine or WSL on Windows. I'd recommend Linux

  • @JohnFranklin55
    @JohnFranklin55 7 หลายเดือนก่อน +2

    in the section of the Dockerfile:
    COPY . . same as COPY . /app

  • @KsChina
    @KsChina 5 หลายเดือนก่อน

    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.

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  5 หลายเดือนก่อน

      Awesome, we use things, we break it and then we fix it, That's how we learn 👍💪

  • @jensenjose682
    @jensenjose682 7 หลายเดือนก่อน +1

    We can use multi-stage Dockerfile to reduce the size of the docker image.

  • @ROHITKUMAR-ym2bj
    @ROHITKUMAR-ym2bj 7 หลายเดือนก่อน

    best video sir

  • @Travelwithakki007
    @Travelwithakki007 5 หลายเดือนก่อน

    Hello can someone let me know were we need run this command ? are you running this command in Linux ?

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  5 หลายเดือนก่อน +1

      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

  • @Gade455
    @Gade455 2 หลายเดือนก่อน

    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
    | ~~~~~~~~~~

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  2 หลายเดือนก่อน

      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

  • @sahiyadri2611
    @sahiyadri2611 6 หลายเดือนก่อน +1

    Sir if possible please keep the working windows size bigger than other window, always need to zoom while learning..
    Content is gr8

  • @sudarsansai4215
    @sudarsansai4215 7 หลายเดือนก่อน

    Informative

  • @bhushanofficial6153
    @bhushanofficial6153 4 หลายเดือนก่อน +1

    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

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  4 หลายเดือนก่อน

      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

  • @debillion
    @debillion 7 หลายเดือนก่อน +1

    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  7 หลายเดือนก่อน +2

      Dockerignore is one way of excluding the irrelevant files, and docker multi-stage build helps a lot to reduce the image size.

  • @mohdshahzad5332
    @mohdshahzad5332 6 หลายเดือนก่อน +1

    we can use docker-compose for reduce the size

    • @mohdshahzad5332
      @mohdshahzad5332 6 หลายเดือนก่อน +1

      mast video majja aagaya reeally👍

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  6 หลายเดือนก่อน

      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  6 หลายเดือนก่อน

      Thanks bro

    • @mohdshahzad5332
      @mohdshahzad5332 6 หลายเดือนก่อน +1

      @@TechTutorialswithPiyushokay thanks for simply explanation

  • @girishk1142
    @girishk1142 6 หลายเดือนก่อน

    awesome :)))))

  • @girdhar3224
    @girdhar3224 7 หลายเดือนก่อน

    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  7 หลายเดือนก่อน

      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 :)

  • @JJ15982
    @JJ15982 7 หลายเดือนก่อน +1

    Lets go Piyush I am excited!! first comment here

  • @johnk8286
    @johnk8286 7 หลายเดือนก่อน

    Day 2 .. are u using the CMD prompt ?

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  7 หลายเดือนก่อน

      I am using Mac terminal but if you are on windows, you can use gitbash

  • @BHAGI5555
    @BHAGI5555 7 หลายเดือนก่อน

    TIME STAMP 22:10 after getting build , how the docker desktop (images) showing local repo , didn't even yet logged in to docker right

  • @kubedigitalhub
    @kubedigitalhub 7 หลายเดือนก่อน

    Thank you

  • @christober.s7006
    @christober.s7006 7 หลายเดือนก่อน

    I think for reducing the sizing of image we can use multi statge build which means using multiple FROM

  • @tvvuday
    @tvvuday 4 หลายเดือนก่อน +1

    For reducing image size, we can go with Docker multistage build.

  • @sagarbirla2879
    @sagarbirla2879 7 หลายเดือนก่อน

    it provides me a lot of celerity in Docker

  • @MarketLake
    @MarketLake หลายเดือนก่อน

    Super

  • @sudheerdutt1879
    @sudheerdutt1879 7 หลายเดือนก่อน

    nice sir

  • @pummysolanki5025
    @pummysolanki5025 7 หลายเดือนก่อน

    Hello Sir, why do we use Docker tag ?

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  7 หลายเดือนก่อน

      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 7 หลายเดือนก่อน

      @@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 🙏😊