Day-10/16 Getting Started With Docker Container | Azure DevOps CICD for Azure Container Instances

ะŸะพะดั–ะปะธั‚ะธัั
ะ’ัั‚ะฐะฒะบะฐ
  • ะžะฟัƒะฑะปั–ะบะพะฒะฐะฝะพ 23 ะถะพะฒ 2024
  • Welcome to Day 10/16 of the Azure DevOps Zero to Hero series. In this video, we will start our journey into containerization with the help of Azure Container Instances.
    We will begin with the concept of containers and provide insights into their advantages over traditional virtual machines. We will look into the challenges faced by non-containerized applications and discover how Docker addresses these issues. Gain a broad understanding of the Docker architecture, peeling back the layers to comprehend the inner workings of containers.
    In the practical segment of our tutorial, we containerize a sample React JS To-Do List web application, guiding you through the Dockerfile creation process. We emphasize the benefits of using a multi-stage Dockerfile, showcasing how it optimizes image creation and reduces size. Transitioning to cloud deployment, we explore Azure Container Instances (ACI), shedding light on their lightweight and efficient nature for running containers in the Azure environment.
    The highlight of our tutorial is the step-by-step walkthrough of setting up an Azure DevOps CI/CD pipeline. Witness a live demonstration as we deploy our containerized To-Do List app to Azure Container Instances, providing you with tangible insights and practical skills for your development journey.
    ๐Ÿ“ŒBy the end of this video, you will learn the following:
    What is a container
    Understanding Virtual machine V/s Containers.
    Challenges with the non-containerized applications
    Docker Architecture
    Containerize a sample To-Do list web app written in React JS.
    Benefits of a multi-stage docker file
    What are Azure container instances(ACI)
    Azure DevOps CICD Pipeline to deploy to ACI
    โœ…๐—”๐—น๐—น ๐˜๐—ต๐—ฒ ๐—ฐ๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ ๐—ผ๐˜‚๐˜๐—น๐—ถ๐—ป๐—ฒ ๐—ต๐—ฎ๐˜€ ๐—ฏ๐—ฒ๐—ฒ๐—ป ๐˜‚๐—ฝ๐—น๐—ผ๐—ฎ๐—ฑ๐—ฒ๐—ฑ ๐˜๐—ผ ๐—บ๐˜† ๐—š๐—ถ๐˜๐—ต๐˜‚๐—ฏ ๐—ฟ๐—ฒ๐—ฝ๐—ผ๐˜€๐—ถ๐˜๐—ผ๐—ฟ๐˜†
    github.com/piy...
    โœ… ๐—”๐—น๐—น ๐˜๐—ต๐—ฒ ๐—ป๐—ผ๐˜๐—ฒ๐˜€ ๐—ฎ๐—ป๐—ฑ ๐—ฑ๐—ถ๐—ฎ๐—ด๐—ฟ๐—ฎ๐—บ๐˜€ ๐—ผ๐—ณ ๐˜๐—ต๐—ถ๐˜€ ๐˜ƒ๐—ถ๐—ฑ๐—ฒ๐—ผ ๐—ต๐—ฎ๐˜ƒ๐—ฒ ๐—ฏ๐—ฒ๐—ฒ๐—ป ๐˜‚๐—ฝ๐—น๐—ผ๐—ฎ๐—ฑ๐—ฒ๐—ฑ ๐˜๐—ผ ๐˜๐—ต๐—ฒ ๐——๐—ฎ๐˜†10 ๐—ณ๐—ผ๐—น๐—ฑ๐—ฒ๐—ฟ: github.com/piy...
    Please support me and join me in this learning marathon. Your engagement, questions, and feedback will be invaluable as we embark on this 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/piy...
    โœ ๐— ๐—ฒ๐—ฑ๐—ถ๐˜‚๐—บ.๐—ฐ๐—ผ๐—บ โ–ถ / piyush.sachdeva055
    ๐Ÿ“š ๐—ฑ๐—ฒ๐˜ƒ.๐˜๐—ผ โ–ถ dev.to/piyushs...
    โœจ๐——๐—ถ๐˜€๐—ฐ๐—ผ๐—ฟ๐—ฑ โ–ถ / discord
    -----------------------------------------------------------------------------------------------------------------------
    References ๐Ÿ“š:
    #devops #techtutorialswithpiyush
    Azure Container Instances
    Docker
    Azure Container Registry DevOps
    Azure Container Instances
    ACI
    Docker Tutorial
    Azure Container Registry
    Docker Containers
    Docker Multistage Build
    Dockerize React App
    Azure DevOps Tutorial for Beginners
    Azure DevOps CI/CD
    Docker
    Azure Container Instance
    Azure DevOps
    Azure DevOps Pipeline
    Azure DevOps Containers
    Azure DevOps Concepts
    Azure DevOps Zero to Hero
    Azure DevOps Full Course
    Azure DevOps Full Course for Beginners

ะšะžะœะ•ะะขะะ ะ† • 58

  • @prasantkumar1986
    @prasantkumar1986 ะœั–ััั†ัŒ ั‚ะพะผัƒ +1

    I like the way you are explaining .Thank you very much

  • @aakashpunekar9437
    @aakashpunekar9437 9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

    Welcome back. Happy to see you โค

  • @devendrapatil5860
    @devendrapatil5860 3 ะผั–ััั†ั– ั‚ะพะผัƒ +2

    Thanks for the video Piyush Sir :).
    Just one i/p from my side, there is no need for "az acr login" step as we 're using the "dockerRegistryServiceConnection" in "Build and push" stage.

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  3 ะผั–ััั†ั– ั‚ะพะผัƒ

      There was a reason why I did that, I dont remember now but I guess there was a bug , you can try removing acr login and see if it works.

    • @CarlosFernan87
      @CarlosFernan87 2 ะผั–ััั†ั– ั‚ะพะผัƒ

      You are right. I did it without az acr login. Thanks

  • @monibahartinne2497
    @monibahartinne2497 3 ะผั–ััั†ั– ั‚ะพะผัƒ +3

    Thanks for not adding any background music on it. As usual, great lecture.

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  3 ะผั–ััั†ั– ั‚ะพะผัƒ +2

      You are welcome! Yeah I stopped adding the bg music. If you see any of my latest videos, only the intro and outro have a light bg music , removed it for the rest of the video.

  • @vikramadhithyamukthapeeda2419
    @vikramadhithyamukthapeeda2419 9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

    happy new year
    eagerly waiting

  • @vinodbhoyar4351
    @vinodbhoyar4351 2 ะผั–ััั†ั– ั‚ะพะผัƒ

    Thanks a lot Piyush Sir for such a informative and practical Video !!

  • @Jalal921
    @Jalal921 9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

    Thank you for the high quality content

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ

      You're most welcome buddy. I'm glad you found it helpful

  • @sarugaming1173
    @sarugaming1173 2 ะผั–ััั†ั– ั‚ะพะผัƒ +1

    Quick question.
    Can we create container instances first perform the deploy step?

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  2 ะผั–ััั†ั– ั‚ะพะผัƒ +1

      Can you please elaborate, I didnot understand the question

    • @sarugaming1173
      @sarugaming1173 2 ะผั–ััั†ั– ั‚ะพะผัƒ

      @@TechTutorialswithPiyush itโ€™s fine, I got it. Thanks for the reply.

  • @abduljaweed2886
    @abduljaweed2886 9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +2

    New year gift ๐Ÿ˜๐Ÿ˜

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

      Definitely brother. A happy new year to you and your family as well

  • @harshavignesh1
    @harshavignesh1 9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

    Awesome stuff, learnt a lot Piyush. Thanks!

  • @mgdesire9255
    @mgdesire9255 9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

    Happy New year Guru ji๐ŸŽ‰๐ŸŽ‰ stay blessed and healthy ๐Ÿ˜Šโค

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ

      Thank you so much Bhai ๐Ÿ˜Š A very happy new year to you as well.

  • @devarshishimpi
    @devarshishimpi 9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

    Awesome video!๐Ÿ’œ
    Happy new year!!๐Ÿฅณ

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

      Happy new year to you as well ๐Ÿ’

  • @nileshhthakur2004
    @nileshhthakur2004 5 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

    Hello Piyush, I tried this videos handson and i am successfully able to build and run pipeline now when i am going to open or connect the docker image i am not able to open it or getting error : Tweb-socket

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  5 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ

      Hello Nilesh, please open a new thread in our Discord community's help-azdevops channel and make sure to provide all the details like what steps you have performed till now, your pipeline code, your error log and so on. Someone will help you

  • @sudihits2430
    @sudihits2430 3 ะผั–ััั†ั– ั‚ะพะผัƒ +1

    I am getting error
    GetUserAccessToken: Failed to obtain an access token of identity f2ce........AAD returned silent feature after selecting docker in the pipeline and after giving container registry details in Azure Devops
    Piyush sir, could you help me

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  2 ะผั–ััั†ั– ั‚ะพะผัƒ

      I dont know where you are getting this error. Please join our discord community and share all the details including your pipeline code and steps you have performe.d

  • @pankajkhaitan8972
    @pankajkhaitan8972 5 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

    Will installer stage container will vanish automatically when deployer container is deployed?

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  5 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

      In this case stage container will be only used as an interim short lived build and some content of that build will be used in the final image

    • @pankajkhaitan8972
      @pankajkhaitan8972 5 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

      @@TechTutorialswithPiyush Thankyou

  • @AtulSingh-lr1bf
    @AtulSingh-lr1bf 9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

    happy new year sir

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ

      Happy new year to you and your family as well :)

  • @amanverma5469
    @amanverma5469 4 ะผั–ััั†ั– ั‚ะพะผัƒ

    Thanks for the tutorial. I am getting error "No such object: nginx:latest" while running the build. Could you please suggest solution for the same.

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  3 ะผั–ััั†ั– ั‚ะพะผัƒ

      Can you share your Github repo with the code and the pipeline ?

  • @tibyverghese
    @tibyverghese 3 ะผั–ััั†ั– ั‚ะพะผัƒ +1

    Thanks a lot

  • @rutumbharapasupalak5577
    @rutumbharapasupalak5577 5 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

    can you please add the stet by step guide to create docker file on the notes and pipeline steps notes too! it will be more helpful

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  5 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ

      Dont worry, I have covered this step by step in the ongoing CKA series, there will be 3 dedicated videos for Docker. I am sure your doubts will be cleared, but feel free to reach out in case you still have any queries.

  • @mukeshkumarbarnwal2011
    @mukeshkumarbarnwal2011 5 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

    Sir, what is significance of
    COPY . .

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  5 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ

      It copies the files from your local file system into the container. Wait for the CKA series and I have explained every concept in depth.

  • @legserver
    @legserver 9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

    Can we have our own docker network and deploy two containers within the same network in azure container instances

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

      Docker networking is abstracted for you in case of ACI as it's a managed service. you can deploy multiple customers on same ACI network

    • @legserver
      @legserver 9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

      @@TechTutorialswithPiyush thankyou

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ

      @@legserver you're welcome

  • @happyshoppi1036
    @happyshoppi1036 5 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

    Hi Thanks for this video learnt a lot I am facing one error please help me on this error

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  5 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ

      Thank you for the feedback, replied to you other message related to the support.

  • @ganeshgunnam-b4l
    @ganeshgunnam-b4l 9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

    waiting for Day-11/16

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  9 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ

      For Day11 editing in progress ๐Ÿ˜€ should be uploaded in a day or two
      Its going to be a long video on Kubernetes

  • @kathirvelp2319
    @kathirvelp2319 5 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

    hi piyush, I have a doubt i can see your dns label line as --dns-name aci-demo-piyush101. in my case how can I change this?

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  5 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ

      Hello , This is your dns label on which your app will be available on the public IP, give it any unique name in the below command
      inlineScript: |
      az container create \

  • @happyshoppi1036
    @happyshoppi1036 5 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ +1

    shall i share the error log can you share your email id

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  5 ะผั–ััั†ั–ะฒ ั‚ะพะผัƒ

      You can join our discord server and share the error logs as well as your pipeline yaml in the az devops help channel and someone will help you.