Most viewed questions in DevOps & Agile

+14 votes
19 answers

How can I run a ‘docker exec’ command inside a docker container?

you can run any command in a ...READ MORE

Dec 10, 2018 in Docker by Pramiti
1,225,952 views
+4 votes
3 answers

Copying files from host to Docker container

Hi, You can use the docker cp command ...READ MORE

Dec 9, 2020 in Docker by MD
• 95,440 points
348,177 views
+3 votes
5 answers

How to run YML compose file?

You can run the following command to ...READ MORE

May 7, 2019 in DevOps & Agile by Mithin
248,329 views
+2 votes
12 answers

How to run multiple commands in docker at once?

In order to run multiple commands in ...READ MORE

Jul 19, 2018 in Docker by Sophie may
• 10,610 points
248,092 views
+4 votes
4 answers

Git push vs git push origin

In simple words git push command updates ...READ MORE

Apr 23, 2019 in Git & GitHub by Hiran
247,762 views
0 votes
1 answer

Error: error response from daemon get https //registry-1.docker.io/v2/ connection refused

Hi@akhtar, Sometimes it happens. I also faced this ...READ MORE

Aug 27, 2020 in Docker by MD
• 95,440 points

reshown Nov 22, 2023 by Soumya 211,047 views
+1 vote
2 answers

fatal: unable to access could not resolve host: GitHub

Hi@akhtar, This can be caused in incorrect proxy ...READ MORE

Apr 10, 2020 in Git & GitHub by MD
• 95,440 points
146,551 views
0 votes
2 answers

Jenkins and Docker : Build a Docker image using an jenkins pipeline and push it into docker registry.

In the illustration below, i have created a ...READ MORE

Aug 26, 2019 in Jenkins by Sirajul
• 59,230 points
144,961 views
+1 vote
1 answer

How to install packages in a Docker container?

Hi@akhtar, To install packages in a docker container, ...READ MORE

Apr 15, 2020 in Docker by MD
• 95,440 points
140,132 views
+2 votes
2 answers

what is the key difference between Declarative pipeline and scripted pipeliine

The key difference between Declarative pipeline and Scripted pipeline ...READ MORE

Aug 13, 2019 in Jenkins by Sirajul
• 59,230 points
121,923 views
+4 votes
7 answers

If conditional in docker file

First of all, create a build_internal.sh file ...READ MORE

May 29, 2018 in Docker by DareDev
• 6,890 points
120,200 views
+5 votes
3 answers

How to trigger a Jenkins pipeline A in another Jenkins pipeline B?

You can run the following code, its ...READ MORE

Jul 5, 2018 in Jenkins by Sophie may
• 10,610 points
117,443 views
+3 votes
4 answers

How do I execute multiple commands using docker-compose

It can be solve by using bash -c ...READ MORE

Sep 20, 2018 in Docker by shubham
• 7,340 points
109,854 views
+3 votes
2 answers

Is there a way to restrict permissions to a user per individual job in jenkins?

Yes, you can configure user permissions per ...READ MORE

May 28, 2019 in Jenkins by Sirajul
• 59,230 points

edited May 28, 2019 by Sirajul 109,749 views
+3 votes
12 answers

Set environment variables in Jenkins

You can try something like this stages { ...READ MORE

Dec 10, 2018 in Jenkins by Celia
107,756 views
+2 votes
3 answers

mvn not recognized as an internal or external command error

Setting the environment variables JAVA_HOME, MAVEN_HOME and  ...READ MORE

Jun 3, 2019 in DevOps Tools by Sirajul
• 59,230 points
90,825 views
+5 votes
2 answers

How to assign a groovy variable to a shell variable?

I have tried the following in my ...READ MORE

Dec 4, 2019 in Jenkins by Raveendiran
• 980 points
87,632 views
+1 vote
3 answers

How to auto build a job in jenkins if there is any change in code on Github repository?

To automatically run build on code commit, follow ...READ MORE

Jul 31, 2019 in Jenkins by Sirajul
• 59,230 points
76,088 views
0 votes
1 answer

Error starting daemon: pid file found, ensure docker is not running or delete /var/snap/docker/179/run/docker.pid

Hi@akhtar, It means the previous PID file of ...READ MORE

Apr 14, 2020 in Docker by MD
• 95,440 points
64,301 views
0 votes
7 answers

docker: executable file not found in $PATH

try to build the image with --no-cache. I ...READ MORE

Nov 1, 2020 in Docker by Deeptesh Agrawal
61,194 views
0 votes
5 answers

How to resolve this error “Jenkins Host key verification failed”?

HI Mam, Please check the following solution:: 1. Switch ...READ MORE

May 3, 2019 in Jenkins by anonymous
60,143 views
+2 votes
3 answers

! [rejected] master -> master (fetch first) error: failed to push some refs to 'git@github.com:abc70/new.git'

git push origin master --force I met the ...READ MORE

Apr 29, 2020 in Git & GitHub by anonymous
59,987 views
0 votes
1 answer

How do I set up a windows_slave agent via JNLP, If I have a Jenkins master configured on linux?

JNLP(JAVA NETWORK LAUNCH PROTOCOL) is used to Connect to/launch ...READ MORE

Jun 3, 2019 in Jenkins by Sirajul
• 59,230 points
56,778 views
+2 votes
3 answers

Permission denied error while running a simple job in Jenkins

Hey @Hannah, try changing the permissions using ...READ MORE

Oct 25, 2018 in Jenkins by krishti
56,403 views
0 votes
2 answers

How do i move jenkins from one server to another?

1. Copy all the files in your JENKINS_HOME directory over ...READ MORE

Aug 2, 2019 in Jenkins by Sirajul
• 59,230 points
51,372 views
0 votes
2 answers

How to configure Maven in Jenkins?

HI... How to configure Maven in Jenkins- I HOPE ...READ MORE

Jul 14, 2020 in DevOps & Agile by anonymous

edited Jul 15, 2020 by Sirajul 50,149 views
0 votes
2 answers

VSCode “please clean your repository working tree before checkout”

One of the ways is to stash ...READ MORE

Apr 22, 2019 in Git & GitHub by Nikhil
49,534 views
0 votes
4 answers

"Layer already exists " when trying to push an image

I had a similar error. I hadn't ...READ MORE

Apr 23, 2019 in Kubernetes by Kalyan
49,247 views
0 votes
3 answers

Using multiple commands in a kubernetes yaml file

Try something like this: containers: - name: ...READ MORE

Apr 23, 2019 in Kubernetes by lyza
48,898 views
0 votes
1 answer

Remove credentials from Git.

Hi@akhtar, The Git credential cache runs a daemon ...READ MORE

Jan 4, 2021 in Git & GitHub by MD
• 95,440 points
48,568 views
+2 votes
5 answers

ERROR: 'git' is not recognized as an internal or external command.

You have to set your PATH to ...READ MORE

Aug 2, 2018 in Git & GitHub by Sophie may
• 10,610 points
46,689 views
+2 votes
4 answers

How to run Jenkins jobs on multiple slaves with a single job configuration?

use multijob plugin READ MORE

Jan 3, 2019 in Jenkins by Ajit Jadhav
46,684 views
+1 vote
6 answers

Unable to login to Jenkins even if I enter valid credentials.

Disable security by editing these two classes ...READ MORE

Apr 26, 2019 in Jenkins by Vedant
46,461 views
+3 votes
5 answers

Is accessing kubernetes dashboard remotely possible?

Yes it is possible by using NodePort ...READ MORE

Mar 9, 2020 in Kubernetes by Ali
• 160 points
46,148 views
+1 vote
1 answer

How to extract a substring of a string in a declarative pipeline code?

This would have been more easier using ...READ MORE

Aug 16, 2019 in Jenkins by Sirajul
• 59,230 points
45,959 views
+4 votes
4 answers

How to install packages inside a docker Ubuntu image?

Execute the update and the install command ...READ MORE

Apr 24, 2019 in Docker by Vismaya
45,087 views
0 votes
4 answers

I'm trying to run docker with Jenkins pipeline but I'm facing this Jenkins pipeline error and a socket.io error.

This happens when the Jenkins user is ...READ MORE

Jun 26, 2018 in Docker by Sophie may
• 10,610 points
44,620 views
+3 votes
7 answers

Is it possible to shift or move jobs between two jenkins servers?

Hi, You can copy Jobs in between your ...READ MORE

Dec 16, 2020 in Jenkins by MD
• 95,440 points
44,442 views
0 votes
5 answers

What is the default Jenkins password?

Change the shell to /bin/bash instead of bin/false ...READ MORE

Apr 23, 2019 in Jenkins by Vinod
44,327 views
0 votes
1 answer

How to list down all the hosts in Ansible?

Hi@akhtar, You can use the option --list-hosts. It will ...READ MORE

Jul 28, 2020 in Ansible by MD
• 95,440 points
43,455 views
+1 vote
1 answer

java.lang.NoSuchMethodError: No such DSL method 'pipeline' found among steps

Hi@akhtar, I think you did not install your ...READ MORE

Jul 7, 2020 in Jenkins by MD
• 95,440 points
43,160 views
0 votes
2 answers

Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error"

mkdir -p $HOME/.kube sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config sudo ...READ MORE

Sep 30, 2020 in Kubernetes by Muhammad Badi uz Zaman
43,098 views
+1 vote
1 answer

How to rename Docker images without rebuilding it?

Hi@akhtar, You can rename your docker image by ...READ MORE

May 19, 2020 in Docker by MD
• 95,440 points
41,210 views
0 votes
1 answer

The connection to the server localhost:8080 was refused - did you specify the right host or port?

Hi@akhtar, You may get this error if Kubectl ...READ MORE

Jun 6, 2020 in Kubernetes by MD
• 95,440 points
40,472 views
+2 votes
6 answers

Jenkins unable to run jobs (pending - waiting for next executor)

Increase the number of executors. I had ...READ MORE

Apr 24, 2019 in Jenkins by Maya
39,866 views
+2 votes
5 answers

error cloning remote repo 'origin'

ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Could ...READ MORE

Jun 3, 2019 in Git & GitHub by Sirajul
• 59,230 points
38,490 views
0 votes
1 answer

How can I enable jenkins to execute the shell commands as sudo or root?

Hey,  Create a freestyle project on Jenkins Use the ...READ MORE

Oct 23, 2020 in Jenkins by Hana
35,328 views
0 votes
2 answers

How to start Jenkins on a different port rather than 8080?

This is simple, use the following command: java ...READ MORE

Jul 4, 2018 in Jenkins by Sophie may
• 10,610 points
35,154 views
+4 votes
7 answers

How to set the pipeline name and description for a Jenkinsfile?

You can rename pipeline jobs in jenkins ...READ MORE

Oct 11, 2018 in Jenkins by Hannah
• 18,570 points
35,132 views
0 votes
5 answers

Error saying "Unable to connect to the server: x509: certificate signed by unknown authority"

export KUBECONFIG=/etc/kubernetes/admin.conf READ MORE

Jul 27, 2019 in Kubernetes by aneesh ansari
35,027 views