for those who are facing the error - "cd: can’t cd to /home/ubuntu/project/django-todo" you can try in this way solution:- sudo docker build -t todo-img4 -f /home/ubuntu/project/django-todo/Dockerfile /home/ubuntu/project/django-todo sudo docker run -d -it -p 8001:8001 todo-img4 remove the cd part and add the path directly to the docker build command
on using these commands I am getting below error : "sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudo: a password is required" How to resolve this issue? I tried alot 😔
@@lalitjain1828 For JOb ---> 1 )sudo vi /etc/sudoers then add this command below root access in sudoers file jenkins ALL=(ALL) NOPASSWD: ALL 3.then goto the ubuntu directory using cd .. then run this codes grep ^ubuntu /etc/group id jenkins sudo adduser jenkins ubuntu grep ^ubuntu /etc/group 4.restart the jenkins relogin sudo systemctl stop jenkins then you good to go
Bro perfect teaching, why i don't know 2 years i was studying Microsoft training rather then yours.i have belief i'll get pro in this. and also i am reffering to all my friends.
Jo hate comments krte h idk....may be wo professionals honge ya phr unhe kuch pta ni hoga but humare jese freshers keliye apke videos bht helpful h........Thank You so much
Trust me i never watched such easy and simple videos that explains main part with errors so clamly. Thanks for it. Please continues making more such amazing tutorials.
Bhaiya..... Mene TH-cam pe bahut video dekhe h DevOps se related.... But jesa aap smjhate ho.... Wesa koi ni smjha skta....... Aapki video se mujhe bahut help milti h.......... thank you bhaiya
शुभम भाऊ लई भारी शिकवलं बरका! तुमचं शिकवण नव्हत बघितल एवढ्या दिवस पण until now whatever you taught us in this bootcamp is already done by me. पण मी धन्यवाद तुम्हाला यासाठी देतोय की तुमच हार्ड वर्क आणि शिकवण्याची शैली मला खूपच आवडली. येथून पुढे मी आवर्जून तुमचे सर्व व्हिडिओ पाहिल व लाईक देखील करेल 🙏☺️
Bhai... literally mujhe coding ka c hi nhi aata tha. bas man kiya devops sikhne ka ... starting me dar lg rha tha k kese kya hoga ... lekin jis way me padaya h na... mtlb kasam se maza aa gya/... life me pehli bar kisi k video pe itna lamba comment kr rha hu ...sach me bahot accha lga .... thanks a lot... fuck the haters...
aap bohot achese padhate ho sir like step by step . jobhi freshers hai , jo bhi students hai, un sabko tabhi samaj ayega jab koi unhe scratch se pura implementation bata raha ho . aap bilkul waise sikha rahe ho. very good going thank you . 😊
bhai you are doing absolutely awesome job, the people who are putting hate comments reminds me old proverb "jb hathi chalta h to 100 dogs bhokte", now i hope u can corelate the things
Your way of giving explanation is simple, lucid. And that surprise in the last video of installing Jenkins on Docker was epic. Everytime I watch video, I learns many new things. Thank You :)
try this i have face the same issue here is how i solve it run this command in ec2 shell (sudo visudo) to open the sudoers file then add this under root ( jenkins ALL=(ALL) NOPASSWD: ALL ) then crtl+s and crtl+x to exit the editor then in the build steps add this command (sudo docker build -t todo-dev -f /home/ubuntu/projects/django-todo/Dockerfile /home/ubuntu/projects/django-todo ) (sudo docker run -d -p 8000:8000 todo-dev ) The steps I provided earlier resolved the issue for me. When implementing them, be sure to omit the brackets from the commands.
I just found your channel. I was struggling to learn all the docker and other CI CD pipelines but your video started from basic which helped me a lot. Thank you, brother. Love from Nepal.
After 27 build failure on 28th build i succeed. Issue : i am using Amazon_linux and after giving sudo permission in configure of todo-app for running docker build and docker run command, it gives error for "We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:" basically its security breach warning of linux. Solution: i added 2 user 1. jenkins and 2.jenkins user ID (in my case "raki" is user id of jenkins) as a users in docker group and restared jenkins as below $ usermod -a -G docker jenkins $ usermod -a -G docker raki $ systemctl restart jenkins Now i am able to build the app successfully. One more test i done to find who is using the process : I tried to delete a user either jenkins or raki using the process, finally i get to know that the user jenkins is currently used by process 29067, so conclude we need to add jenkins as a user only. Thnaks to subham and #stackoverflow community.
Hi Shubham, You are doing great job, I have seen some videos of DevOps, it is amazing, explanation style is awesome. I really appreciate you for your hard work. All the best for future videos.
you helped me a lot sir I researched alot about good devops project and there are many but there is no one teaching step by step solving errors and moving its great I am grateful to find you Sir Also I want to see you collaborate with kunal kuswaha I am excited to see you both in one frame
Thank you soo much shubham ❤ I m really struggling to create a pipeline. You always make me easy n inspire me to learn. Keep up the good works💐 Keep growing 😍
Thank you, Shubham bhai, for simplifying such a complicated journey of CI/CD. It was very challenging for me to understand such complex topics alone, mainly due to errors arising from previous changes that seemed to persist indefinitely. While it may be considered basic for deployment, this knowledge has allowed us to scale further. Once again, thanks a lot. One more thing to add is that as a student at IIT, many of my friends and seniors used this video as a learning resource, and we successfully developed a scalable microservices-based application.
It's really good Bhai Recently we are migrated to aws Now from scratch I'm doing ci/cd automation for my whole project deployed in kubeenates with docker containers.
@@TrainWithShubhamnow I'm doing all deployments manually only but please I need ur inputs on next video Like setup of gitlab credentials,docker and whole in kubeenates cluster
Respect for the effort putting in sir!! people like us (Non-Tech background) can also easily understand your teachings, thanks for keeping us in mind while teaching sir
Thank you very much for your videos... I am always so exited to watch your bootcamp videos. I wait eagerly for them. Please don't stop making them. I am learning a lot by following your videos.
Sir aapki ye bootcamp Wali series bohut achi hai... me toh enjoy kar raha hu is series ke videos ko... I am waiting for next video like others wait for next episode of a web series... Good working sir 👏 👍
Also please try to explain how every tool is set up and works in real world, as this is where lot of people fail during interview. BTW love your content❤
Sir, Thanks a lot for sharing very beneficial knowledge, excellent teaching skill, today I enrolled your python course, one question as a devops engineer how much we should know about database, will you please cover in your ongoing devops project course related to database.
Excellent tutorial Shubham. Regarding nodes, is it a one-time set up in the real world PROD env or do we need to create nodes separately for every application/project? Waiting for next part eagerly.
sir the node which we have created is offline, and whenever we start the build it takes use of Buit-In-Node, and that is giving me error. Sir please help me. I m doing my project for college and 26 is last date. I used ssh to connect to node but that is not working too. I m being stuck at the same place for more than 2 days.
Your content and the way you teach is awesome bro. Waiting for the next video.✌️✌️. Please let us know when the next video will be released bro i am waiting to set it up for my project.
0 The error message you're encountering indicates a permission issue with Docker. Specifically, Jenkins does not have the necessary permissions to access the Docker daemon socket (/var/run/docker.sock). To resolve this issue, you need to grant Jenkins permissions to access the Docker daemon. You can achieve this by adding the Jenkins user to the Docker group. Here's how you can do it: Log in to your Jenkins server via SSH. Run the following command to add the Jenkins user to the Docker group: bash Copy code sudo usermod -aG docker jenkins After adding the Jenkins user to the Docker group, restart the Jenkins service to apply the changes: bash Copy code sudo systemctl restart jenkins Verify that the Jenkins user is now part of the Docker group: bash Copy code groups jenkins
Hello sir content is so nice and you have explain it crystal clear but please can you add some bullet points of projects that we can add in our resume. It will be more helpful for all of us. Thanks
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudo: a password is required How to provide root password or private key to jenkins?
Hii, Shubham I have a question about docker use in Jenkins. 1# There are 2 scenario in which I'm confusing ,first I I install Jenkins and maven in Ec2 and I configured a pipeline in which maven will build , Test and Archive the Artifact. This I simple I can use this Artifact to deploy 2# but now in another pipeline fech code and maven will only test it and now we use docker to build the project in image and and use this image for deployment. *Question is i use to create docker image in this image file maven will build the code and docker create a image. Why not simply build the project in ec2 using maven and create a Artifact and now deploy this Artifact to where app is running suppose in container. Why build the image in a container . Deploy the image I understand but why build the image in docker container itself. I know it can be a silly question . Please help
Its always better to use containerized version of things, I understand your point, but it reduces the complexity of maintaining the installation and uninstallation of apps when we use containers
Thanks Shubham, for the wonderful piece of art. I have a doubt: why does my Jenkins Docker image create a new image every time I shut down the instance? It requires me to start again with an admin password, then wait for the default plugins, pipelines, and agent to be set up again. What is the right way to address this ?
i followd this series and i am facing the error in jenkis the error is can't cd to directory. meanwhile i have added 777 permissions to project directory
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /var/lib/jenkins/workspace/Dev-app/Dockerfile: no such file or directory ............ where i am missing ?????????/
Nice explanation!!! thanks for the efforts!!! The node you have added is the same on which you have installed jenkins-master or is it another slave node?
You are the best ❤️. I am a mechanical engineer and I am new to DevOps and learning alot frm u ❤️. I need your help. I am working in a company and I have to integrate Jenkins with Gitlab so that whenever I make any changes in Gitlab code base it should reflect in Jenkins pipeline. I have tried with webhook also but it is failing. Can you help me in this?
Dasvi movie mein Abhisek Bacchan jaise bolte hain ki "Ganti Tum bhagban ho" , Waise apke videos dekhne ke baad mein bhi bol sakta hu "Shubham Bhai Aap Bhagwan ho". 🙏Aap se simple koi samjha nahi sakta.
mera ek question jab main github pe code push kardu toh apne aap woh build create hona chahiye I don't want to trigger the build button manually on jenkins
Hi Subham, first of all I would like to give a big thank you for teaching us these amazing concepts. I am facing this small issue. In the jenkins console output I am getting this error messgage "cd: can't cd to /home/ubuntu/projects/django-todo Build step 'Execute shell' marked build as failure Finished: FAILURE" What should I need to do ?
Really a nice content in a quiet easier manner about totally CI/CD pipe line... I have a small doubt ... If we take pipe line at starting of Jenkins rather that free style project is there any difference in the process ? Can u please explain it ?
There is an error coming, after giving permission also cd: can't cd to /home/ubuntu/projects/django-todo Build step 'Execute shell' marked build as failure
@@TrainWithShubham sir I also have doubts I have watched your lecture 5 and am facing issues like I’m not able to integrate with GitHub , I have tested the connection was successful but when I am trying to add my GitHub repository link on that and then error occurs code 128 something like that I have tried different methods used stack over flow but nothing is working 😞
Sir, i tried to run this shell in my environment 1st i got . No such file or directory for cd command for that I copied all folder to var/lib/jenkins as cloud_user . 2nd i got: there is not enough gid an uid present for jenkins user so I find one doc where i assigne gid uid to jenkins user 3rd i got : i got the job success but the job is runned by jenkins user not cloud_user so for that I have to give access of shell to jenkins then I got to know this user is running all the jobs For 1st i don't know how you got no error bcz i run it twice in different machine , pls tell me how you configured jenkins to run as other user
@@TrainWithShubham i am following the whole series but the docker image that u add didn't show up when we do docker PS. There is only an iD. So where is it gone? Even though i added that in the start Inst
for those who are facing the error - "cd: can’t cd to /home/ubuntu/project/django-todo" you can try in this way
solution:-
sudo docker build -t todo-img4 -f /home/ubuntu/project/django-todo/Dockerfile /home/ubuntu/project/django-todo
sudo docker run -d -it -p 8001:8001 todo-img4
remove the cd part and add the path directly to the docker build command
on using these commands I am getting below error :
"sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required"
How to resolve this issue? I tried alot
😔
Yes i also getting the same error.
@@lalitjain1828
For JOb --->
1 )sudo vi /etc/sudoers
then add this command below root access in sudoers file jenkins ALL=(ALL) NOPASSWD: ALL
3.then goto the ubuntu directory using cd .. then run this codes grep ^ubuntu /etc/group id jenkins
sudo adduser jenkins ubuntu grep ^ubuntu /etc/group
4.restart the jenkins relogin sudo systemctl stop jenkins
then you good to go
Couldn't understand what your telling... describe it properly
@@yash_s_14_ plz help
Bro perfect teaching, why i don't know 2 years i was studying Microsoft training rather then yours.i have belief i'll get pro in this. and also i am reffering to all my friends.
Jo hate comments krte h idk....may be wo professionals honge ya phr unhe kuch pta ni hoga but humare jese freshers keliye apke videos bht helpful h........Thank You so much
thank you so much bhai ❤️
Trust me i never watched such easy and simple videos that explains main part with errors so clamly. Thanks for it. Please continues making more such amazing tutorials.
Thanks a lot sarvesh, means a lot to me,... i'll make more videos
Bhaiya..... Mene TH-cam pe bahut video dekhe h DevOps se related.... But jesa aap smjhate ho.... Wesa koi ni smjha skta....... Aapki video se mujhe bahut help milti h.......... thank you bhaiya
thanks you soo much dost
शुभम भाऊ लई भारी शिकवलं बरका!
तुमचं शिकवण नव्हत बघितल एवढ्या दिवस
पण until now whatever you taught us in this bootcamp is already done by me.
पण मी धन्यवाद तुम्हाला यासाठी देतोय की तुमच हार्ड वर्क आणि शिकवण्याची शैली मला खूपच आवडली.
येथून पुढे मी आवर्जून तुमचे सर्व व्हिडिओ पाहिल व लाईक देखील करेल 🙏☺️
Thanks a lot bhau.. khup bara vatla aaikun
Bhai... literally mujhe coding ka c hi nhi aata tha. bas man kiya devops sikhne ka ... starting me dar lg rha tha k kese kya hoga ... lekin jis way me padaya h na... mtlb kasam se maza aa gya/... life me pehli bar kisi k video pe itna lamba comment kr rha hu ...sach me bahot accha lga .... thanks a lot... fuck the haters...
Thanks a lot bhai.. means a lot to me
ur videos are a boon to beginners Idk how people can criticize this, they just wish to be spoonfed everything. I see this as an amazing launchpad
aap bohot achese padhate ho sir like step by step . jobhi freshers hai , jo bhi students hai, un sabko tabhi samaj ayega jab koi unhe scratch se pura implementation bata raha ho . aap bilkul waise sikha rahe ho. very good going thank you .
😊
thank you so much. aisey hi padhaata rahoonga
bhai you are doing absolutely awesome job, the people who are putting hate comments reminds me old proverb "jb hathi chalta h to 100 dogs bhokte", now i hope u can corelate the things
thanks a lot.. trying my best to be out there bhai
You are fantastic sir,i am automation engineer i never understand pipeline but now I am understanding pipeline of CICD
lovely, thanks a lot
Your way of giving explanation is simple, lucid. And that surprise in the last video of installing Jenkins on Docker was epic. Everytime I watch video, I learns many new things. Thank You :)
thanks a lotttt.. its always great learning with you all
try this i have face the same issue here is how i solve it run this command in ec2 shell (sudo visudo) to open the sudoers file then add this under root ( jenkins ALL=(ALL) NOPASSWD: ALL ) then crtl+s and crtl+x to exit the editor then in the build steps add this command (sudo docker build -t todo-dev -f /home/ubuntu/projects/django-todo/Dockerfile /home/ubuntu/projects/django-todo )
(sudo docker run -d -p 8000:8000 todo-dev ) The steps I provided earlier resolved the issue for me. When implementing them, be sure to omit the brackets from the commands.
I just found your channel. I was struggling to learn all the docker and other CI CD pipelines but your video started from basic which helped me a lot. Thank you, brother. Love from Nepal.
always :)
The way you handle all your critics, thats simply awesome shubham. You earned my respect buddy. Always Thankful to people like you ❣️
this means a lot to me, thanks :)
After 27 build failure on 28th build i succeed.
Issue : i am using Amazon_linux and after giving sudo permission in configure of todo-app for running docker build and docker run command, it gives error for "We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:" basically its security breach warning of linux.
Solution: i added 2 user 1. jenkins and 2.jenkins user ID (in my case "raki" is user id of jenkins) as a users in docker group and restared jenkins as below
$ usermod -a -G docker jenkins
$ usermod -a -G docker raki
$ systemctl restart jenkins
Now i am able to build the app successfully.
One more test i done to find who is using the process : I tried to delete a user either jenkins or raki using the process, finally i get to know that the user jenkins is currently used by process 29067, so conclude we need to add jenkins as a user only.
Thnaks to subham and #stackoverflow community.
awesome,
Get Upskilled in DevOps: bit.ly/devops-batch-2
Excellent way to teaching I have never seen before, Good Job Subham bhai. keep it up
Thanks a ton
Respect the effort you put in for making such easy and understandable content..❤
thanks a lot brother.. means a lot..
Hi Shubham, You are doing great job, I have seen some videos of DevOps, it is amazing, explanation style is awesome.
I really appreciate you for your hard work.
All the best for future videos.
Thanks a ton
hats off big brother .. only a true experienced person can simplify these critical things as a chlid;s play ... appreaceate your efforts ❣
Thanks a ton
End tk video dekhna hi hoga Vaiya. Itna kuch sikhne ko mil rha h. Thank u bht hi chota word hoga. God bless u and fullfill all ur wishes🤗
Made my day :)
you helped me a lot sir I researched alot about good devops project and there are many but there is no one teaching step by step solving errors and moving its great I am grateful to find you Sir Also I want to see you collaborate with kunal kuswaha I am excited to see you both in one frame
always, thanks a loy
Thank you soo much shubham ❤
I m really struggling to create a pipeline. You always make me easy n inspire me to learn.
Keep up the good works💐
Keep growing 😍
Thank you so much 😀
Great Teaching skill sir, I have never seen this quality tutorial video in Devops series .Please make more videos for Industry level live project .
thanks a lot, I will
@@TrainWithShubham Sir Also create group for Devops help where people can solve their problems and find devops jobs.
@@niketpatel7935 its already there.. telegram channel.. link in description
Thank you, Shubham bhai, for simplifying such a complicated journey of CI/CD. It was very challenging for me to understand such complex topics alone, mainly due to errors arising from previous changes that seemed to persist indefinitely. While it may be considered basic for deployment, this knowledge has allowed us to scale further. Once again, thanks a lot. One more thing to add is that as a student at IIT, many of my friends and seniors used this video as a learning resource, and we successfully developed a scalable microservices-based application.
thanks dost
It's really good Bhai
Recently we are migrated to aws
Now from scratch I'm doing ci/cd automation for my whole project deployed in kubeenates with docker containers.
that's amazing.. keep it up
@@TrainWithShubhamnow I'm doing all deployments manually only but please I need ur inputs on next video
Like setup of gitlab credentials,docker and whole in kubeenates cluster
@@sunkamvenkatesh1086 got it.. I'll keep in mind and make
@@TrainWithShubham thank you so much..
It will help me alot
Respect for the effort putting in sir!! people like us (Non-Tech background) can also easily understand your teachings, thanks for keeping us in mind while teaching sir
So nice of you
Yes I will be doing more of this
Kuch to log kahenge, logonka kam hai kehena! Keep up the good work bhai you are helping me :)
thank you so much , dost..
i'll always do that
As a fresher i learnt something new about Jenkins thank you bhaii....
Glad to hear that
Wow ! What a simplified way to explain complex topics.
Love from Pakistan
much love bhai❤️❤️❤️
hats off for your efforts sir thank u so much for teaching us in a easy method🙂
Thanks and welcome
Thank you very much for your videos... I am always so exited to watch your bootcamp videos. I wait eagerly for them. Please don't stop making them. I am learning a lot by following your videos.
I'll surely make more
awesome ✌✌ as always you teach from scratch so that non technical guy can understand😉
that's the goal bhai
Sir ji aap great ho🙌 bahot Sara pyar apko sir ❤
shukriya❤️
I am really happy to say, ki koni Marathi mulaga technical youtuber aahe , aani te pan best knowledge sobat.
I hope ki mi khup saglya lokanna inspire karu, ki te majhya peksha changla karu
Thanks Abhijeet bhau
@@TrainWithShubham ho nakki
Totally Agree bhau
i am watched video i understand easily ci/cd pipline .thank u sir for making this type of videos
You are most welcome
Thank you for the video. Your explanation is so clear, Shubham.
thanks sir, its amazing that in just 4 videos and within hour i learned the whole infrastructure
Glad to hear that
@@TrainWithShubham love❤ from Pakistan🇵🇰
Always love your videos I become zero to hero with the help of your videos
that's amazing. thank you
Sir aapki ye bootcamp Wali series bohut achi hai... me toh enjoy kar raha hu is series ke videos ko...
I am waiting for next video like others wait for next episode of a web series...
Good working sir 👏 👍
bhaaii.. means a lot.. definitely.. next episode aur achha hoga
@@TrainWithShubham Sir waiting for your new episode 😄
Thank you so much for explaining the CI/CD concepts in simple words. You deserve more subsc.....
Thank you so much Niveditha, means a lot,
Yes please do share with your freinds:)
Bhaiya naya shikneko miltahe apse hamesha. May Allah always be with you.
thank youu soo muchh bhai.. means a lot.. same wishes to you.
Also please try to explain how every tool is set up and works in real world, as this is where lot of people fail during interview. BTW love your content❤
I have made a video on the tools setup.. please watch the full bootcamp.. thanks again
Very good way of explaining the things in simplest way.....
thanks a lot for watching
Nice content the way you simply explained CI/CD is awesome.
Thanks a ton
ek no bhau... rhada .... full jorat tuzyamule 😀
ahaaaan .. masttaa
Superb-Duperb explanation Shubham Sir...Amazing
Thanks for uploading this type of projects video!
So nice of you
Very nice shubham ....you teach this in easiest way.....with simple laguage
thanks a lot. yes thats my goal
Ye to kamal with surprise ho gya, (chuk k rakho ustad g : Punjabi line)
ahaan
Also do checkout Abhishek's channel for next kubernetes video:)
Well Explained!! Keep adding more videos in this series. Thankyou.
Thank you, I will
Sir, Thanks a lot for sharing very beneficial knowledge, excellent teaching skill, today I enrolled your python course, one question as a devops engineer how much we should know about database, will you please cover in your ongoing devops project course related to database.
thanks, I'll try my best to cover
Excellent tutorial Shubham. Regarding nodes, is it a one-time set up in the real world PROD env or do we need to create nodes separately for every application/project? Waiting for next part eagerly.
we need to create separate nodes:)
Thanks for making this
Hoping and expecting more in future for this type of projects or more advance projects
🙏🙏
More to come!
muje ni pta tha itna easy h Jenkins m
bhai mst bawal chiz bnai h ye to Jenkins
are yar pehele yhi bnana tha n😃
Ahaan, hai toh mastt
@@TrainWithShubham apke subscriber to corona ki trha bdh rhe h😂😂
Bro impressed with your real time teaching technique
Can I get one on one training
Please let me know
thanks bhai
check this out
bit.ly/devops-batch-7
Bro , your videos are awesome .....
and there is always be haters who is gonna shit on u ,no matter what ...because "They hate us cuz they aint us"
they hate us coz they ain*us 😜
You are world 🌎 best teacher 👨🏫 ho
Thank you so much:)
Sir you teaching skills are A class
So nice of you
Is playlist k sare videos mujhe nai mil rahe please shuvam bhai please help me to get those videos
Bhaiya ye video bahut hi achha tha, me 2 din se pipeline bana rha tha but har bar fail ho rha tha. Me CI part ka wait kar rha hu.
bhai thanks.. pakka boht jaldi
Great sir, we learn a lot from this Jenkins in 1video
many more videos to come
sir the node which we have created is offline, and whenever we start the build it takes use of Buit-In-Node, and that is giving me error. Sir please help me. I m doing my project for college and 26 is last date. I used ssh to connect to node but that is not working too. I m being stuck at the same place for more than 2 days.
Unit jenkins.service could not be found.
I found this error when I run the command sudo systemctl status jenkins
please give me the solution
Your content and the way you teach is awesome bro. Waiting for the next video.✌️✌️. Please let us know when the next video will be released bro i am waiting to set it up for my project.
Thank you so much 😀
Very soon bhai
0
The error message you're encountering indicates a permission issue with Docker. Specifically, Jenkins does not have the necessary permissions to access the Docker daemon socket (/var/run/docker.sock).
To resolve this issue, you need to grant Jenkins permissions to access the Docker daemon. You can achieve this by adding the Jenkins user to the Docker group. Here's how you can do it:
Log in to your Jenkins server via SSH.
Run the following command to add the Jenkins user to the Docker group:
bash Copy code sudo usermod -aG docker jenkins After adding the Jenkins user to the Docker group, restart the Jenkins service to apply the changes:
bash Copy code sudo systemctl restart jenkins Verify that the Jenkins user is now part of the Docker group:
bash Copy code groups jenkins
I am trying to build but
Cd /home/ubuntu/projects/djangotodo
Can't executed
Hello sir content is so nice and you have explain it crystal clear but please can you add some bullet points of projects that we can add in our resume. It will be more helpful for all of us. Thanks
definitely. I'll give those.. thanks a lot
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
How to provide root password or private key to jenkins?
Nice Video for beginners, Thank you Mr. Shubham keep it Up
thanks a lot
What a perfect explanation. Bravo. Thanks a lot.
Glad it was helpful!
Hii, Shubham
I have a question about docker use in Jenkins.
1# There are 2 scenario in which I'm confusing ,first I I install Jenkins and maven in Ec2 and I configured a pipeline in which maven will build , Test and Archive the Artifact. This I simple I can use this Artifact to deploy
2# but now in another pipeline fech code and maven will only test it and now we use docker to build the project in image and and use this image for deployment.
*Question is i use to create docker image in this image file maven will build the code and docker create a image.
Why not simply build the project in ec2 using maven and create a Artifact and now deploy this Artifact to where app is running suppose in container.
Why build the image in a container . Deploy the image I understand but why build the image in docker container itself.
I know it can be a silly question . Please help
Its always better to use containerized version of things, I understand your point, but it reduces the complexity of maintaining the installation and uninstallation of apps when we use containers
from where you have got the projects file at 9:40
Bhaiya you are awesome , keep going
Thank you so much 😀
Can you try making the CI/Cd with the pipelines option instead of using freestyle project again and again? its a request
definitely.. will make soon
Thanks Shubham, for the wonderful piece of art. I have a doubt: why does my Jenkins Docker image create a new image every time I shut down the instance? It requires me to start again with an admin password, then wait for the default plugins, pipelines, and agent to be set up again. What is the right way to address this ?
thanks. that's because it doesn't have volume attached
Great informative video sir.learning new things in every video..love from pune
pune.. boht jaldi aaunga bhai.. thanks a lot
Excellent delivery, Good Job, Keep Going... ❤
thank you so much
i followd this series and i am facing the error in jenkis the error is
can't cd to directory. meanwhile i have added 777 permissions to project directory
try adding jenkins user to docker group
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /var/lib/jenkins/workspace/Dev-app/Dockerfile: no such file or directory ............ where i am missing ?????????/
ask in telegram
Nice explanation!!! thanks for the efforts!!!
The node you have added is the same on which you have installed jenkins-master or is it another slave node?
same node
You are the best ❤️. I am a mechanical engineer and I am new to DevOps and learning alot frm u ❤️.
I need your help. I am working in a company and I have to integrate Jenkins with Gitlab so that whenever I make any changes in Gitlab code base it should reflect in Jenkins pipeline.
I have tried with webhook also but it is failing. Can you help me in this?
yes yes.. this will be there in the upcoming videos
Dasvi movie mein Abhisek Bacchan jaise bolte hain ki "Ganti Tum bhagban ho" , Waise apke videos dekhne ke baad mein bhi bol sakta hu "Shubham Bhai Aap Bhagwan ho". 🙏Aap se simple koi samjha nahi sakta.
thanks a lot bhai.. itni izzat dene ke liye shukriya
can anyone tell me how to remove the Connection timed out error while establishing connection to ec2
try ssh
Next video and Sunday and superb
awesome
@@TrainWithShubham confirm ayegi ka
1:21 kuch to log kahenge tum bs videos banate rha from scratch..👍👍👍👍
bas aisey hi logo ki need hoti hai ek teacher ko
Nice man! Doing great job, this kind of tutorials i always need. 👌👌
more to come
mera ek question jab main github pe code push kardu toh apne aap woh build create hona chahiye I don't want to trigger the build button manually on jenkins
watch latest live on Jenkins
Hi Subham, first of all I would like to give a big thank you for teaching us these amazing concepts. I am facing this small issue. In the jenkins console output I am getting this error messgage "cd: can't cd to /home/ubuntu/projects/django-todo
Build step 'Execute shell' marked build as failure
Finished: FAILURE"
What should I need to do ?
there's a solution to this.. you can ask in telegram channel
There is no error on telegram
bro how did you resolve this please reply
i am also having the same isssue, did you solve that
@@sharafathussain2036 I am also facing that problem please help me.
Really a nice content in a quiet easier manner about totally CI/CD pipe line...
I have a small doubt ... If we take pipe line at starting of Jenkins rather that free style project is there any difference in the process ? Can u please explain it ?
I'll cover that too
Getting an error can't cd /home/ubuntu/project/django-todo,
Shell with failure
make sure you have that path on your server
facing same issue
Thanks bro for giving us this video, nice explanation, make more videos on ci-cd pipeline includes, GitHub, Jenkin,docker,kubernetes
definitely.. will make more..
"Appretiate your hardwork keep on going brother 😊"
Thank you so much 😀
There is an error coming, after giving permission also
cd: can't cd to /home/ubuntu/projects/django-todo
Build step 'Execute shell' marked build as failure
ask in telegram, people will give solution
Sir, your lecture was very interesting, keep on teaching
Thank you, I will
@@TrainWithShubham sir I also have doubts I have watched your lecture 5 and am facing issues like I’m not able to integrate with GitHub , I have tested the connection was successful but when I am trying to add my GitHub repository link on that and then error occurs code 128 something like that I have tried different methods used stack over flow but nothing is working 😞
Great work Bro, Thanks for making such amazing videos and simplifying things. Respect ++
Sir, i tried to run this shell in my environment
1st i got . No such file or directory for cd command for that I copied all folder to var/lib/jenkins as cloud_user .
2nd i got: there is not enough gid an uid present for jenkins user so I find one doc where i assigne gid uid to jenkins user
3rd i got : i got the job success but the job is runned by jenkins user not cloud_user so for that I have to give access of shell to jenkins then I got to know this user is running all the jobs
For 1st i don't know how you got no error bcz i run it twice in different machine , pls tell me how you configured jenkins to run as other user
Where did u get the docker image name?
todo-dev. U didn't create a docker image with this name.
created in the previous videos, please check the whole series
@@TrainWithShubham i am following the whole series but the docker image that u add didn't show up when we do docker PS.
There is only an iD.
So where is it gone?
Even though i added that in the start
Inst
Shubham bhai ci-cd vali pipeline ka video bi dal do ...usko write kerne m issue aata h
karta hu naa
Dhanyavaad bhau, if possible plz bring videos sooner ❤
definitely..will try my best