How to Push docker image to Docker Hub using Jenkins Pipeline

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ส.ค. 2021
  • #devops #docker #dockertutorials In this video , we will learn about Jenkins pipeline to deploy docker image. We will create 5 stage Jenkins Pipeline to Automate Docker Build and Push to Docker Hub , the steps involve in Jenkins pipeline to build docker image are listed below:
    1. Clone the NodeJS Project from GitHub
    2. Build the docker Image using Docker Build
    3. Login to Docker Hub
    4. Push the Image to Docker Hub
    5. Log out from Docker Hub
    ---------------------------------------------------------------------------------
    Setup Jenkins Master:
    • DevOps | Jenkins Tutor...
    -------------------------------------------------------------------------------
    -------------------------------------------------------------------------------
    Setup Jenkins Slave:
    • Jenkins Master Slave T...
    ------------------------------------------------------------------------------
    ------------------------------------------------------------------------------
    NodeJS docker tutorial:
    • NodeJs Nginx Reverse P...
    -----------------------------------------------------------------------------
    -----------------------------------------------------------------------------
    GitHub link:
    github.com/shazforiot/How-to-...
    ---------------------------------------------------------------------------
    ======================================
    Follow me @:
    / thetips4you
    / @thetips4you
    / thetipsforyou
    www.thetips4you.com
    =======================================
    Music credit: "Royalty Free Music from Bensound"
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @youtubepro2906
    @youtubepro2906 2 ปีที่แล้ว +2

    After watching 20 to 30 Videos , finally its work for me.
    #Best

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว +2

      Thank you. That's a huge compliment.

  • @sachingainewar5246
    @sachingainewar5246 2 ปีที่แล้ว +1

    thanks sir it is replay helpfull information and explain in very beautiful way

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว

      You are welcome and glad to hear your feedback.

  • @stalinengoma7680
    @stalinengoma7680 2 ปีที่แล้ว +1

    Very nice video. I liked it

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว +1

      Good to hear your feedback. Thank you

  • @GuyArtChannel
    @GuyArtChannel 2 ปีที่แล้ว +2

    thanks for a great explanation! it helped me with my project

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว

      That's nice to hear. Thank you for your feedback.

  • @degasuresh
    @degasuresh 2 ปีที่แล้ว +2

    Very nice videos and explanation:-). expecting more videos for devops Sir

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว +1

      You are welcome and thank you for your support.

  • @bangalorerealestatedevelop7431
    @bangalorerealestatedevelop7431 2 ปีที่แล้ว +1

    Very nice i understand completely 😊 fentastic job 👍

  • @DuyTran-ss4lu
    @DuyTran-ss4lu 2 ปีที่แล้ว +1

    Awesome

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

    very helpful and workable. just a bit confused by the PSW and USR part...

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

      Can you explain what you are confused about?

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

      you did not declare those variables, but you can use them by simply appending PSW and USR as suffixes to the declared one. this confuses me...Thanks!@@Thetips4you

  • @bangalorerealestatedevelop7431
    @bangalorerealestatedevelop7431 2 ปีที่แล้ว

    Please do one video about how to write Groovy script using Jenkins pipeline from scratch to master 😊that will great 👍

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว +1

      Thank you for your suggestion. Will look in to this.

  • @youtubepro2906
    @youtubepro2906 2 ปีที่แล้ว +1

    Please let us know , After this, How to run the docker images automatically? Is there any video from you? How to pull the same docker image from docker hub and run in a Slave ?

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว

      Yes, please check the videos.

    • @youtubepro2906
      @youtubepro2906 2 ปีที่แล้ว

      @@Thetips4you Which One ?

  • @anjalishreya9890
    @anjalishreya9890 ปีที่แล้ว +1

    Thankyou so much i was struggling because i was not able to pushed image to docker hub because of denied: requested access to the resource is denied this error i was able to slove this issue when i chnaged my image name with docker push dockerhubusername/imagename:latest. Thankyou

  • @AnilKumar-gg6uy
    @AnilKumar-gg6uy 2 ปีที่แล้ว +1

    Does aws jenkins and azure jenkins are same process

  • @UltimateKeyboardHero
    @UltimateKeyboardHero 2 ปีที่แล้ว +1

    how do you manage to get the sh 'docker ...' commands working? I'm running jenkins on a private server and I keep getting 'docker command not found'. There're other methods to get it working, but I want to be able to write my custom docker commands like how you have executed them. T_T

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว +2

      The Jenkins slave or master on which you are running the job should have docker installed.

    • @UltimateKeyboardHero
      @UltimateKeyboardHero 2 ปีที่แล้ว +1

      @@Thetips4you Sweet I think I got it! So my jenkins is not running in a cluster, it's running on a dedicated server. From what I understand I have to have docker installed inside the Jenkins host. Thanks a LOOOOOT been at this problem for a while now.

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว +2

      Yes you are right.