Run Jenkins in Docker Container - Jenkins Pipeline Tutorial for Beginners 1/4

  Рет қаралды 300,697

TechWorld with Nana

TechWorld with Nana

Күн бұрын

Learn how to run Jenkins in a Docker Container.
This video covers the following:
* Pull Jenkins Image and run container
* Initialize Jenkins and install default plugins
* Create First Admin User
* Types of Jenkins Projects
For any questions/issues/feedback, please leave me a comment and I will get back to you as soon as possible.
#devops #jenkins #docker #techworldwithnana
-------------------------------------------------------------------------------------------------------
Complete Docker and Kubernetes tutorial ► bit.ly/2YGeRp9
What is Kubernetes? ► • What is Kubernetes | K...
Docker 🐳 vs Kubernetes ► • Docker vs Kubernetes v...
Complete Jenkins Pipeline Tutorial ► • Complete Jenkins Pipel...
-----------------------------------------------------------------------------------
✅ Connect with me
► KZbin: / @techworldwithnana
► DEV: dev.to/techworld_with_nana
► Instagram: / techworld_with_nana
► Twitter: / njuchi_

Пікірлер: 139
2 жыл бұрын
so good for all people from other languages, thanks for clean speaking
@asadtigercatchingratsindac1365
@asadtigercatchingratsindac1365 2 жыл бұрын
thank you so much. i've been using youtube for like 4 years now and you're the first channel to subscribe.
@kingsleytardzenyuy6280
@kingsleytardzenyuy6280 Жыл бұрын
you are gifted with skills especially how to teach others, straight to the point and in an easy and understandable way. no bla bla bla like most gurus online
@priyankapatel9461
@priyankapatel9461 3 жыл бұрын
You made an excellent video! I successfully created Jenkins by watching this video. Thanks a lot.
@alexbukk556
@alexbukk556 3 жыл бұрын
You make sooooo amazing videos! I came only for Jenkins tutorials, but will definetely come back for more DevOps videos. Thanks a lot! :D
@alansosamejia1365
@alansosamejia1365 2 жыл бұрын
Hey I've been learning a lot thanks to your videos. A month ago I finally started to learn about DEVOPS technologies such as Docker, Kubernetes and Jenkins and you make everything so accessible and easy to understand. Thanks!
@sushantkeni4020
@sushantkeni4020 3 жыл бұрын
Beautiful I was using deprecated image and was having some issues with the plugin installation. After watching your video I realised that I was using a deprecated image. Thank you 🥳
@shaheenodeh9858
@shaheenodeh9858 2 жыл бұрын
Amazing quality, I'm starting to understand more about Jenkins, thank you for your high quality content it is really useful.
@abessesmahi4888
@abessesmahi4888 4 жыл бұрын
Thank you so much for docker, k8s and jenkins series. Subscribed
@TechWorldwithNana
@TechWorldwithNana 4 жыл бұрын
Amazing! thanks for watching all the videos and subscribing 🙂 Would appreciate your support by sharing it, if you think they helped you a lot :)
@rafael.batista
@rafael.batista 3 жыл бұрын
Hi! I need to comment here.... It's just the second video I've been watching in a row and I love it! Thanks for sharing your knowledge with us!
@lokeshvarkumar2705
@lokeshvarkumar2705 3 жыл бұрын
Thank you for creating such a useful channel on KZbin.
@rush2112chile
@rush2112chile 2 жыл бұрын
Tienes mucho talento para enseñar, muchas gracias por tus videos. 😊
@zeerar
@zeerar Жыл бұрын
I learnt so much from Nana. She is my teacher in DevOps.
@itguyry
@itguyry 2 жыл бұрын
This is a great step by step! Thank you I’ll be using this!
@mauriciogambini
@mauriciogambini 3 жыл бұрын
All your videos are great ! Thanks, Nana :)
@19rosariorey
@19rosariorey 2 жыл бұрын
The first time I understand how to set up jenkins on ducker. Thanks
@codewithvikasmishra
@codewithvikasmishra 3 жыл бұрын
Its very helpful for me as I am a new bee for Jenkins and this what I am looking for.
@omarjarkas2175
@omarjarkas2175 2 жыл бұрын
It a real pain to work with Jenkins without docker, thank you for the informative video
@nadiiaradionenko8793
@nadiiaradionenko8793 3 жыл бұрын
Thank you so much, really helpful!
@srini580
@srini580 Жыл бұрын
Nana, thanks! you are the best!
@karthickbaskar6886
@karthickbaskar6886 4 жыл бұрын
Nice explanation. Keep it up. Expecting more videos like this. Slow and Steady explanation.
@TechWorldwithNana
@TechWorldwithNana 4 жыл бұрын
Thanks a lot Karthick! :) Will do many more videos 🚀
@elad3958
@elad3958 3 жыл бұрын
A master at work.
@yummywithali
@yummywithali 4 жыл бұрын
Thank you. that was the course which I would need it :)
@TechWorldwithNana
@TechWorldwithNana 4 жыл бұрын
You're welcome Ali, glad you liked it :)
@bombrman1994
@bombrman1994 11 ай бұрын
This helped me a lot, you gonna make me look so good setting up our pipeline 😅
@prashantdhumal2106
@prashantdhumal2106 3 жыл бұрын
Hello, Very Good work.Quality Content with proper knowledge.
@zeerar
@zeerar Жыл бұрын
Best series Nana
@chandrashekhar152
@chandrashekhar152 3 жыл бұрын
Wonderful thank you so much
@georgeli6820
@georgeli6820 2 жыл бұрын
amazing video! THank you!
@zeerar
@zeerar Жыл бұрын
Nana you are amazing
@amarlukade2225
@amarlukade2225 3 жыл бұрын
i m fan of your by watching videos from you ... nice videos.. nice explained.
@armaanmahajan6944
@armaanmahajan6944 3 жыл бұрын
Great content. Appreciated.
@syedsaqibaftab19
@syedsaqibaftab19 2 жыл бұрын
Great stuff Nana.
@mustafasayilgan463
@mustafasayilgan463 3 жыл бұрын
thank you for creating such a useful channel on youTube. u re best :D
@Anderson-tm1sl
@Anderson-tm1sl 3 жыл бұрын
You're awesome! Thank you!
@rajnishsagar7307
@rajnishsagar7307 2 жыл бұрын
you always make things very easier for the learners. Many thanks :)
@010timeboy27
@010timeboy27 4 жыл бұрын
Thanks. I had no idea with the publish (p) flag was being used twice before.
@joeabala2037
@joeabala2037 3 жыл бұрын
Perfect!!
@HarjendraRawat
@HarjendraRawat Жыл бұрын
Awsome Explaination :)
@leoniaklebanov2502
@leoniaklebanov2502 Жыл бұрын
Awesome explanation…
@srinvs9219
@srinvs9219 4 жыл бұрын
Good presentation👍
@TechWorldwithNana
@TechWorldwithNana 4 жыл бұрын
Thanks :)
@khalilomrani384
@khalilomrani384 2 жыл бұрын
beautiful sound
@abajoaladerecha
@abajoaladerecha 4 жыл бұрын
Excellent
@bartomiejkmita5118
@bartomiejkmita5118 3 жыл бұрын
Ohh why I visited your chanel so late :) Great content!
@moonyyy9093
@moonyyy9093 3 жыл бұрын
Hi Nana, I'm new to Devops, what's the best order to learn from your video? Should I start with the docker+kubernetes and then this video?
@CP-nt4qx
@CP-nt4qx 2 жыл бұрын
Thank you!
@etylio2
@etylio2 2 жыл бұрын
First of all, thank you for this!
@GigaSongulashvili
@GigaSongulashvili 3 жыл бұрын
Thank you for your effort to make those great videos. P.S. When I saw your name immediately thought that you are Georgian.
@chicka.alexia
@chicka.alexia Жыл бұрын
thank you !
@joseluizmartins1
@joseluizmartins1 Жыл бұрын
Thank you :)
@deepakdeepu565
@deepakdeepu565 2 жыл бұрын
Thank you
@asepdadan448
@asepdadan448 2 жыл бұрын
thanks so tell about jenkins clear video
@qazalehfallah1348
@qazalehfallah1348 2 жыл бұрын
Awesome :*
@jagadish86
@jagadish86 Жыл бұрын
Hello, Great Video, i wanted to know similar to how you manually configured cloud node, can we do this via rest api. Plan is to create / delete cloud node via rest api
@zeerar
@zeerar Жыл бұрын
Very nice
@krishm5116
@krishm5116 2 жыл бұрын
Great, One Question: You have configured additional plugins, What if I restart my docker container, Does it loose all those configured additional plugins?
@aldoremy679
@aldoremy679 4 жыл бұрын
Good tutorial, I hope you will explain how to use the Ansible plugin in Jenkins. Thanx
@TechWorldwithNana
@TechWorldwithNana 4 жыл бұрын
Thanks Aldo for the suggestion, will consider it! I want to make some more videos for learning Jenkins actually. And it's helpful for me to get suggestions, so I know what people would like to see :)
@user-gs4eq5dv2f
@user-gs4eq5dv2f 3 жыл бұрын
@@TechWorldwithNana I hope you also to cover Ansible explanation in a separate playlist as well as the hope above
@HagbardCelineOnRust
@HagbardCelineOnRust 3 жыл бұрын
coming from frontend land i liked your course so far. Would support on Patreon, couldnt find the link.
@aras306
@aras306 9 ай бұрын
Thank you for videos, May I know why I get "missing signature key"
@nikolaborkowski9942
@nikolaborkowski9942 Жыл бұрын
cool! seems that Sher sings about DevOps))))
@angtranhai6457
@angtranhai6457 2 жыл бұрын
Great! :D
@shivanitiwari7751
@shivanitiwari7751 3 ай бұрын
Is this small playlist enough to learn and practice basics of Jenkins or there is more for a fresher to learn for an interview?
@chanchalsakarde2768
@chanchalsakarde2768 Жыл бұрын
What is best practices to use Jenkins under docker for production server
@ravichandrahadagali2235
@ravichandrahadagali2235 4 жыл бұрын
Hi tq really good one.. i followed the same steps but it was asking for proxy configuration and I want to execute code present in the host system..how can I execute it using jenkins running in docker..for me in creating node page in launch method I am not seeing connect via ssh option.. could u please help me out
@afgi9
@afgi9 2 жыл бұрын
Nice video
@ranius7388
@ranius7388 4 ай бұрын
if i want to preserve the data / state i need to create volume for this container ?
@amichubby1
@amichubby1 3 жыл бұрын
Thanks NaNa sharing your videos. I will setup my enterprise cloud name after you "NANA" .. as token appreciation ..
@tony-ma
@tony-ma Жыл бұрын
lts stands for long term support version
@nandiniachugatla932
@nandiniachugatla932 3 ай бұрын
Can you make please video on How to setup docker as build agent in containerzed jenkins / in jenkins image
@Jxdx332
@Jxdx332 Жыл бұрын
Can you guide a way to run Docker Container Jenkins with SSL enabled on secure port
@Castisland
@Castisland 3 жыл бұрын
Can you please make AWS videos too..thanks
@amiyakumarnayak6375
@amiyakumarnayak6375 9 ай бұрын
Hey Nana I'm getting Unstable build everytime when I'm deploying on docker, please reply
@saidmzee4107
@saidmzee4107 2 жыл бұрын
please can you assist on how we can connect to gitlab with ssh from jenkins container
@Nagendra_Guni
@Nagendra_Guni 3 жыл бұрын
Hi Nana, Can you make a video for Jenkins pipeline based deployment with GKE cluster or others cloud? You can also suggest me any existing resource for same.
@TechWorldwithNana
@TechWorldwithNana 3 жыл бұрын
Hello Nagendra, will consider. 🙂
@noone-hi6kq
@noone-hi6kq 3 жыл бұрын
works
@HoangHuy-nq1if
@HoangHuy-nq1if 3 жыл бұрын
WOW u good
@TechWorldwithNana
@TechWorldwithNana 3 жыл бұрын
Trying my best to help everyone improve. Thank you Hoang. 🙂
@harkiratsingh5253
@harkiratsingh5253 2 жыл бұрын
I am running Jenkins as docker container - I have installed it using your video, Now I want to run slave agents as docker containers for jenkins, how can i do that ? please refer to some documentation
@omkarkulkarni5918
@omkarkulkarni5918 4 жыл бұрын
Good tutorial.I am trying to setup Jenkins master slave on kubernetes. But i am facing 1 issue.Whenever Jenkins slave is launched.it launches a jnlp container along with with my custom maven container..Then problem i am facing is but default it runs the build under following path /home/jenkins/ looks like jnlp container creates a emptydir volume and mount at both container at /home/jenkins path.. But when i create a custom volume eg hostPath type.And define at pod and and mount at both containers.Still some how my build are performed under default /home/jenkins path.. Requesting for help if anyone has tried this..
@AlexSubbotin
@AlexSubbotin 4 жыл бұрын
Hi Nana, why Jenkins is used for CI/CD? I see it more and more. TeamCity is also a great tool but i dont see it really often in the videos like this. Thank you.
@TechWorldwithNana
@TechWorldwithNana 4 жыл бұрын
You're right. There are other good CI tools. A lot of projects are using Gitlab CI/CD for example. My experience with Jenkins is that it integrates with so many technologies and provides many plugins to cover every use case I've needed so far, which is logically since its been around a long time. That's why I use it in all of my projects.
@ericacm
@ericacm 4 жыл бұрын
One reason is that Jenkins is free, and TeamCity is not, for more than 3 build agents. To buy 3 more build agents (total of 6) is $2000
@sureshkachwa5345
@sureshkachwa5345 2 жыл бұрын
How do we attach external volume to this containerized jenkins and make sure our workspace and code pulled from different stages of the pipeline gets saved in external volume
@rayapatiswathi
@rayapatiswathi 2 жыл бұрын
look for docker volumes concept. you can attach from command and specifying location.
@theanimestory1163
@theanimestory1163 3 жыл бұрын
Thank for the video, I am stuck a bit I have created EC2 instance and used following commands, sudo apt-get update sudo apt-get install -y docker.io sudo systemctl enable docker sudo systemctl start docker docker volume create my docker run -p 8080:8080 -p 50000:50000 -v my:/var/jenkins_home jenkins/jenkins here am done with Jenkins But the problem is when I select Install suggested plugin or Install Selected plugin, those are failed to install like not a single plugin showing green colour (successfully installed) and I don't know why is that happening could you please help me with this....
@muhammadsaeed6057
@muhammadsaeed6057 2 жыл бұрын
Your videos are beautiful as you are.
@skoizumi291101
@skoizumi291101 4 жыл бұрын
I am not so clear about the reason of having jenkins with Docker? I understand development enviornment can be work well with docker but not sure why I need to make the deployment environment work with docker. Is there any resource to find out about that? Thanks :)
@TechWorldwithNana
@TechWorldwithNana 4 жыл бұрын
That's a good point. I guess it depends on the project. In many big organisation, Jenkins is managed by a separate sysadmin group and they install the whole cluster directly on servers and don't use it as docker container. Also it has a disadvantage that it needs root access for certain cases, in which case you have container with root access to your underlying system, which of course isn't secure. However in smaller projects, were you need flexibility, and you want to quickly spin up a Jenkins server, it's convenient. Or if I wanna just try some stuff out locally, that's a use case as well. That's my experience. What's your experience?
@bharatprakashparakh9601
@bharatprakashparakh9601 4 жыл бұрын
Could you please upload videos on Jenkins for beginners !
@TechWorldwithNana
@TechWorldwithNana 4 жыл бұрын
Hi, yes will consider it. which topics would you be interested in specifically? or what questions do you have regarding Jenkins?
@abessesmahi4888
@abessesmahi4888 4 жыл бұрын
@@TechWorldwithNana I will be nice to see a demo on CI/CD using Jenkins. Thank you Nana.
@santoshkumbhar4354
@santoshkumbhar4354 4 жыл бұрын
Nana....I love you
@laponiec
@laponiec Жыл бұрын
How to make this jenkins persistent? If I quit my Docker Desktop, how do I restart this jenkins container?
@Airborn_Army
@Airborn_Army 2 жыл бұрын
my plugins are not getting installed showing red cross instead green tick mark. i retry again but not working help pls
@manojj1544
@manojj1544 4 жыл бұрын
Super Girl a small Typo @2:53 ... I got your bak..hehe
@akashlodhi8021
@akashlodhi8021 2 жыл бұрын
yes this video was very helpful, but since i cancel the command, it stopped working. i believe we deployed the jenkins war ?
@sonuutbe
@sonuutbe 3 жыл бұрын
Hi Nana, I am facing issue while persisting the changes for Jenkins and i face the below issue and inspite i am logging as root user i am getting the below issue: [root@osboxes /]# mkdir my-jenkins-data [root@osboxes /]# sudo docker run -p 8080:8080 -v /root/my-jenkins-data:/var/jen kins_home jenkins/jenkins:lts touch: cannot touch '/var/jenkins_home/copy_reference_file.log': Permission deni ed Can not write to /var/jenkins_home/copy_reference_file.log. Wrong volume permiss ions? Can you please help me and what could be the issue here BR Sunil Kirangi
@sppv3040
@sppv3040 2 жыл бұрын
LTS stands for Long Term Support, not latest
@sanielsainoding2735
@sanielsainoding2735 Жыл бұрын
I got sslhandshake error please help
@avishekchatterjee531
@avishekchatterjee531 2 жыл бұрын
How to restore the username and password, after restarting the container?
@hugochen121
@hugochen121 3 жыл бұрын
i followed the exact command, but i was not able to install the default plugins.. When I tried removing the volume, it works. Does any one have the same issue?
@arnabmukherjee5840
@arnabmukherjee5840 3 жыл бұрын
what error signature did you get? did you use the same docker images? I tried few hours back and its up. Without volume it wont save progress.
@RutvikPatel2611
@RutvikPatel2611 3 жыл бұрын
i cannot seem to install the plugin ,running ubuntu from windows wsl2 ubnutu here is my command "docker run -d --privileged -v jenkins_home:/var/jenkins_home -p 8080:8080 -p 50000:50000 jenkins/jenki ns:lts" obviously without --privileged didn't work, and also -u root (also tried -u rut (myuser in ubuntu couldn't even recognize it)didn't work , I believe there some write/read permission issue with host machine for .but can any one help
@RutvikPatel2611
@RutvikPatel2611 3 жыл бұрын
some one help asap!!!!! i am stuck!! it doesn't even work with -v or persistent volume
@MY19693
@MY19693 4 жыл бұрын
Hi, Gibt es eine Möglichkeit den Jenkins Docker mit einem non-root User laufen zu lassen? Dieser soll aber auch im Home Verzeichnis lesen/schreiben/ausführen können.
@TechWorldwithNana
@TechWorldwithNana 4 жыл бұрын
Man kann einen eigenen Benutzer erstellen, dem du auf die relevanten Verzeichnisse die Berechtigungen gibst und Jenkins mit diesem Benutzer startest. Z.B. das Jenkins Image, das ich in der Demo verwende, benutzt einen Jenkins User statt Root. D.h. du könntest das Dockerfile erweitern und dem Jenkins User zusätzliche Rechte geben und dann das Image selber bauen. Hilft dir das weiter?
@MY19693
@MY19693 4 жыл бұрын
@@TechWorldwithNana Erstmal danle für deine Antwort. Das habe ich auch schon gemacht. Problem dabei ist das im späteren Build Verlauf trotzdem Dateien von root erstellt werden und ich dann als User keinen Zugriff drauf habe (In einem später erstelltem Subverzeichnis). Warum sie vom root erstellt werden weiß ich leider auch nicht :D
@TechWorldwithNana
@TechWorldwithNana 4 жыл бұрын
@@MY19693 Okay verstehe. Wenn ich mal dazu komme muss ich das mal selbst ausprobieren und schauen wie man das löst.
@2010aishwary
@2010aishwary 3 жыл бұрын
i am trying to run this but my jenkins container has no internet access so its not able to load plugins not sure how to provide internet access
@2010aishwary
@2010aishwary 3 жыл бұрын
i was able to fix it by adding google dns
@timokito5815
@timokito5815 3 жыл бұрын
@@2010aishwary How did you do that?
@chessyboy000
@chessyboy000 3 жыл бұрын
I need help. I seem to not have any internet connection when I run Jenkins in a container can anybody help with this. It keeps asking for a proxy server and when i do a work around i dont have the tools i need to make sure it runs correctly in this tutorial all i have is a freestyle project.
@darshanchaluvaraju
@darshanchaluvaraju 3 жыл бұрын
+1
@darshanchaluvaraju
@darshanchaluvaraju 3 жыл бұрын
These commands helped me : ( Ref : stackoverflow.com/questions/40214617/docker-no-route-to-host ) # Allows container to container communication, the solution to the problem firewall-cmd --zone=public --add-masquerade --permanent # standard http & https stuff firewall-cmd --zone=public --add-port=80/tcp --permanent firewall-cmd --zone=public --add-port=443/tcp --permanent # + any other port you may need # reload the firewall firewall-cmd --reload
@yogeshdhote1543
@yogeshdhote1543 4 жыл бұрын
I forgot my username/password and unable to find - `/var/jenkins_home/secrets/initialAdminPassword` in my docker container.. could someone please asssit?
@afsalaazeez
@afsalaazeez 3 жыл бұрын
docker exec -it /bin/bash cat var/jenkins_home/secrets/initialAdminPassword
@timokito5815
@timokito5815 3 жыл бұрын
@@afsalaazeez thank you for that!
@f1r33x1t
@f1r33x1t 2 ай бұрын
Great but that keyboard noise is killing me.
@koribr764
@koribr764 Жыл бұрын
Am I the only one who did not see where and what she typed?
@koribr764
@koribr764 10 ай бұрын
You are not alone. The teaching style is not very appropriate for beginners as I am
Complete Jenkins Pipeline Tutorial | Jenkinsfile explained
35:06
TechWorld with Nana
Рет қаралды 756 М.
Just try to use a cool gadget 😍
00:33
123 GO! SHORTS
Рет қаралды 84 МЛН
Универ. 10 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:04:59
Комедии 2023
Рет қаралды 2,2 МЛН
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 21 МЛН
PINK STEERING STEERING CAR
00:31
Levsob
Рет қаралды 22 МЛН
GitLab CI CD Tutorial for Beginners [Crash Course]
1:09:00
TechWorld with Nana
Рет қаралды 1,1 МЛН
How to Run Jenkins on Docker
13:59
CloudBeesTV
Рет қаралды 16 М.
Docker Tutorial for Beginners
56:04
Programming with Mosh
Рет қаралды 2,4 МЛН
Azure DevOps Tutorial for Beginners | CI/CD with Azure Pipelines
36:29
TechWorld with Nana
Рет қаралды 1,1 МЛН
100+ Docker Concepts you Need to Know
8:28
Fireship
Рет қаралды 819 М.
Learn Jenkins! Complete Jenkins Course - Zero to Hero
1:08:28
DevOps Journey
Рет қаралды 711 М.
GitHub Actions Tutorial - Basic Concepts and CI/CD Pipeline with Docker
32:31
TechWorld with Nana
Рет қаралды 1,4 МЛН
Just try to use a cool gadget 😍
00:33
123 GO! SHORTS
Рет қаралды 84 МЛН