Тёмный

How to Push a Docker Image to Docker Hub Using Jenkins 

CloudBeesTV
Подписаться 34 тыс.
Просмотров 20 тыс.
50% 1

Need help with your Jenkins questions?
Visit community.jenkins.io/c/using-...
Timecodes ⏱:
00:00 Introduction
00:20 Overview
00:45 Starting point
01:02 Setup Access Token in Docker Hub
01:59 Create Credential in Jenkins
02:54 Create, run, and review job
06:00 Review image in Docker Hub
06:36 Conclusion
#jenkins #dockerhub #jenkinstutorial
Information referenced in this video:
Jenkins LTS 2.277.2
www.jenkins.io/changelog-stab...
Using a Credentials store with Docker Engine
docs.docker.com/engine/refere...
CloudBees on Twitter:
/ cloudbees
Darin on Twitter:
/ darinpope

Наука

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

 

30 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@toenytv7946
@toenytv7946 3 года назад
I appreciated the docker explanation. Spoke volumes. Great job.
@AmitKumar-jp4uh
@AmitKumar-jp4uh Год назад
Thank you sir. You explained awesome.
@benhadjyahiamehdi4772
@benhadjyahiamehdi4772 2 года назад
hello sir , my git repository does not have such a jenkins file , can i add it manually so that it uses the token as password ? dockerhub says that access is denied when i push an image from jenkins freestyle project
@jpbd7574
@jpbd7574 2 года назад
Hi. Can you do a similar example with GHCR? I am incapable of pushing using a Github application that is bound to our organisation. Please let me know!
@anupampatil6443
@anupampatil6443 6 месяцев назад
Hi the darinpope dockerhub repository selected for multibranch pipeline is running in progress for indefinite period. Do we have to select different repository
@aptget822
@aptget822 3 года назад
Thanks for the video. how to solve this warning: Your password will be stored unencrypted in /var/lib/jenkins/.docker/config.json. Assume I created docker credentials helper file, how to use it inside the Jenkins pipeline? thank you
@Guillen8606
@Guillen8606 3 года назад
Hi Daren, I have jenkins running in a docker image and end up getting the error message "...script.sh: docker: not found". Any videos you can recomend to fix this?
@joeb.1163
@joeb.1163 2 месяца назад
did you find a solution to this?
@user-im3dw7li4v
@user-im3dw7li4v 26 дней назад
When i try to run docker commands in the pipeline, i get "docker: not found".i think i dont have docker installed on my jenkins agent. Can someone help?
@yateenbbaluja4312
@yateenbbaluja4312 9 месяцев назад
I tested as per this tutorial but I am getting an error 'docker not found' when I am building an image inside Jenkins job
@idobistry
@idobistry 8 месяцев назад
you will need to install docker on your image
@user-im3dw7li4v
@user-im3dw7li4v 26 дней назад
​@@idobistry the image of the application or the image of jenkins?
@muhuradedan
@muhuradedan 7 месяцев назад
I wish you explained how you set up the Jenkins account. You lost me at the jenkins part lol
@lavanyaeswaran6113
@lavanyaeswaran6113 2 года назад
Can you share that git link
@idobistry
@idobistry 8 месяцев назад
Hi Darin I am having issues executing docker on dockered slave that is windows docker slave , when the controller is on linux It looks like the slave staerts eecuting docekr , but when trying to execute tests and manuipulation of this image created , it is looking at windws path (this is a windows slave) that I configured beofre in jenkins , but examone it like a linux path and tells me that this path is relative (it is not !!! d:/.../docker_agent/ )
@Avico78
@Avico78 Год назад
Thanks Darin for great tutorial ! where does the $DOCKERHUB_CREDENTIALS_PSW and $DOCKERHUB_CREDENTIALS_USR are getting from? In case u cover that in some other video it would be really helpful if can refer me , thanks again!
@nagyadel7464
@nagyadel7464 11 месяцев назад
The Jenkins declarative pipeline is provided with a helper method called credentials(). When the username and pssword credentials are stored in the environment variable using the credentials method, these credentials can be accessed as a set of username password from the environment variable which is DOCKERHUB_CREDENTIALS in our case. Apart from this, this environment variable can also be used to access username as a separate entity by appending USR to the environment variable i.e. DOCKERHUB_CREDENTIALS_USR in our case. The same variable can also be used to access password by appending PSW to the environment variable i.e. DOCKERHUB_CREDENTIALS_PSW in our case.
@idobistry
@idobistry 8 месяцев назад
environment { DOCKERHUB_CREDENTIALS= credentials('') } The Jenkins pipeline has provided helper method : credentials(). once yuo call it , it should store the username password into the env variuables these credentials can be accessed as a set of username password from the environment variable which is DOCKERHUB_CREDENTIALS see the log of the execution : [Pipeline] { [Pipeline] withCredentials Masking supported pattern matches of %DOCKERHUB_CREDENTIALS% or %DOCKERHUB_CREDENTIALS_USR% or %DOCKERHUB_CREDENTIALS_PSW% [Pipeline] { [Pipeline] stage
@oleggorenkov
@oleggorenkov Месяц назад
"Masking supported pattern matches of $DOCKER_HUB_CREDENTIALS or $DOCKER_HUB_CREDENTIALS_PSW"
Далее
How to Configure LDAP in Jenkins
13:05
Просмотров 14 тыс.
How to Create an Agent Node in Jenkins
23:57
Просмотров 92 тыс.
How to Monitor Jenkins With Grafana and Prometheus
25:44
How to create a great dev environment with Docker
29:55
Getting Started With Shared Libraries in Jenkins
23:23
How to Use Kubernetes Pods As Jenkins Agents
25:15
Просмотров 54 тыс.
Jenkins Multibranch Pipeline With Git Tutorial
29:54
Просмотров 79 тыс.
ЗАБЫТЫЙ IPHONE 😳
0:31
Просмотров 20 тыс.
iPhone 16 - 20+ КРУТЫХ ИЗМЕНЕНИЙ
5:20