Most viewed questions in DevOps & Agile

+1 vote
3 answers

"400 bad request-The plain http request was sent to https port" nginx

If you check your config file, it ...READ MORE

Apr 30, 2019 in Kubernetes by Vaidya
34,257 views
0 votes
1 answer

How to set permissions for a user in Jenkins?

Hi@akhtar, You can give access to your user ...READ MORE

Dec 7, 2020 in Jenkins by MD
• 95,440 points
33,592 views
+2 votes
6 answers

copy directories in docker container excluding any one directory

One of the way could be copy ...READ MORE

Dec 10, 2018 in Docker by Prateek
33,404 views
+1 vote
1 answer

"msg": "Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this.

Hi@akhtar, You are getting this error because when ...READ MORE

Aug 1, 2020 in Ansible by MD
• 95,440 points
33,201 views
+4 votes
4 answers

How To Access a Service on Host From a Docker Container?

Adding to kalgi's answer, You can also ...READ MORE

Oct 16, 2018 in Docker by lina
• 8,220 points

edited Oct 16, 2018 by lina 33,185 views
+4 votes
4 answers

perform Git checkout using Groovy script

To do git commit: def getGitCommit() { ...READ MORE

Dec 6, 2018 in DevOps Tools by Vaidya
32,846 views
+2 votes
5 answers

stash/unstash to transfer data in Jenkins from a build container to the other node.

Since the container gets destroyed once the ...READ MORE

Dec 21, 2018 in Jenkins by anonymous
32,720 views
+1 vote
1 answer

How to expose docker container's ip and port to outside docker host without port mapping?

you can accomplish this with IP aliasing ...READ MORE

Aug 2, 2018 in Docker by Kalgi
• 52,360 points

edited Jan 16, 2020 by Kalgi 30,986 views
0 votes
1 answer

Changing Jenkins workspace

By default, your Jenkins workspace would be ...READ MORE

May 15, 2019 in Jenkins by Kapil
30,746 views
+1 vote
1 answer

How to deal with non-fast forward errors?

This error is faced when git cannot ...READ MORE

Jul 3, 2018 in Other DevOps Questions by Sophie may
• 10,610 points
30,339 views
0 votes
1 answer

How to copy directory and sub dirs's and files from source to remote using ansible playbook

Hey @Nishant, you can use the copy ...READ MORE

Apr 3, 2019 in Ansible by Kalgi
• 52,360 points
30,105 views
0 votes
1 answer

Print the line if it contains a specific string by using groovy.

You can try the code written below: ...READ MORE

Apr 27, 2018 in Jenkins by shubham
• 7,340 points
29,420 views
0 votes
1 answer

How to clone a job in Jenkins?

Hi@akhtar, You can clone a Job in Jenkins. ...READ MORE

Oct 24, 2020 in Jenkins by MD
• 95,440 points
29,241 views
0 votes
2 answers

How to change the default Jenkins port in Windows?

Hi@akhtar, Yes, you can change Jenkins port no. ...READ MORE

Jun 3, 2020 in Jenkins by MD
• 95,440 points
28,885 views
–1 vote
1 answer

Git: cannot checkout branch - error: pathspec '…' did not match any file(s) known to git.

Hi@MD, You can try the git fetch command ...READ MORE

Jan 4, 2021 in Git & GitHub by akhtar
• 38,230 points
28,671 views
0 votes
2 answers

how to execute a shell script post build step in Jenkins?

You could use the Post Build Task Plugin ...READ MORE

Jul 31, 2019 in Jenkins by Sirajul
• 59,230 points
28,655 views
+1 vote
4 answers

Is there a way to change the Jenkins build number while building a job?

If you have access to the script ...READ MORE

May 7, 2019 in Jenkins by Atul
28,603 views
0 votes
2 answers

Docker: unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx

Very cliche, but check if the Dockerfile ...READ MORE

Apr 23, 2019 in Docker by Umer
28,480 views
+1 vote
2 answers

How do I copy a file from docker container to host?

Here is a way which you can ...READ MORE

Aug 28, 2018 in Docker by Damon Salvatore
• 5,980 points
28,264 views
0 votes
1 answer

How is docker machine different from docker engine?

Docker machine is different from Docker engine ...READ MORE

Jul 4, 2019 in Docker by Sirajul
• 59,230 points
28,232 views
+1 vote
3 answers

How do I check and export sonarqube analysis reports in embedded db?

Browse to sonarqube web instance to access ...READ MORE

Jul 2, 2018 in DevOps Tools by DareDev
• 6,890 points
27,605 views
+1 vote
1 answer
+5 votes
5 answers

Jenkins properties file

Follow these steps: 1. Install ‘EnvInject’ plug-in in the Jenkins ...READ MORE

Aug 2, 2018 in Jenkins by lina
• 8,220 points
27,571 views
0 votes
2 answers

Error saying " "hosts" E212: Can"t open file for writing" when trying to change host name on the VM

I am interested in the answer as ...READ MORE

Jan 26, 2019 in Docker by anonymous
27,527 views
+1 vote
1 answer

How to abort the merge conflict in Git?

Hi@akhtar, You can use the git reset --merge ...READ MORE

Dec 23, 2020 in Git & GitHub by MD
• 95,440 points
27,521 views
+2 votes
4 answers

Kubernetes cluster pod status EVICTED

I learned this the hard way, but ...READ MORE

Jan 22, 2019 in Kubernetes by Lyndon
27,452 views
0 votes
1 answer

Set volume mount user group and file permissions in kubernetes

There's a setting in Pod Security Context ...READ MORE

Jan 16, 2019 in Kubernetes by ajs3033
• 7,300 points
27,379 views
0 votes
3 answers

kubectl get ing gives no address in kubernetes ingress

 I had the same problem and I ...READ MORE

Apr 24, 2019 in Kubernetes by Chris
27,268 views
0 votes
1 answer

Install GIT and Maven inside a Docker Container and access them to build a job with Maven from a GIT repository

Create a Dockerfile and add the commands ...READ MORE

Apr 16, 2019 in Jenkins by Nishu
27,038 views
+1 vote
1 answer

Error: src refspec master does not match any. error: failed to push some refs to 'ssh://xxxxx.com/project.git'.

Hi@akhtar, The most probable reason for this error ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
26,884 views
+2 votes
1 answer

How to run a job in Jekins by a different user ?

To run a job by a specific ...READ MORE

Jun 17, 2019 in Jenkins by Neel
• 3,020 points
26,818 views
+1 vote
0 answers

Give full access permission to another user in GitHub

How do I give full access permission ...READ MORE

May 15, 2019 in Git & GitHub by Umer
26,484 views
+3 votes
4 answers
+2 votes
2 answers

Difference between a replica set and replication controller

Olaaa Jinu! Replica set and replication controller - ...READ MORE

Dec 19, 2019 in Kubernetes by Kalgi
• 52,360 points
25,262 views
0 votes
1 answer

How to add multiple lines in a file using Ansible playbook?

Hi@akhtar, You can update your file using lineinfile ...READ MORE

Sep 16, 2020 in Ansible by MD
• 95,440 points
25,252 views
+2 votes
6 answers

How to add a volume to Docker, but also exclude a sub-folder?

Here is what you can try if ...READ MORE

Nov 21, 2018 in DevOps & Agile by Shubham
• 1,000 points
24,715 views
+5 votes
4 answers

local docker image on minikube

I know this is an old question ...READ MORE

Feb 1, 2020 in Kubernetes by anonymous
24,523 views
0 votes
4 answers
0 votes
1 answer

How to locate Git installation folder on a Mac OS X?

By default the git homepage installs into ...READ MORE

Aug 7, 2018 in Git & GitHub by Sophie may
• 10,610 points
24,471 views
0 votes
2 answers

Error saying "no endpoints available for service \"kubernetes-dashboard\" while getting the dashboard up

Not able to access dashboard it says:  { ...READ MORE

Jan 10, 2019 in Kubernetes by vishal
24,324 views
0 votes
1 answer

How do I start a Docker container with a volume?

You can first create the volume and ...READ MORE

Jul 2, 2019 in Docker by Namik
• 1,230 points
24,248 views
0 votes
2 answers

What is docker system prune is used for?

The basic usage of the command docker ...READ MORE

Aug 5, 2019 in Docker by Sirajul
• 59,230 points
24,048 views
0 votes
1 answer

Code error 403 when trying to access Kubernetes cluster

You get this error because you're getting ...READ MORE

Jan 4, 2019 in Kubernetes by Kabeer
24,009 views
+2 votes
3 answers

Error while doing kubernetes-init command

The reason that it mentions the port ...READ MORE

Sep 6, 2018 in Kubernetes by Kalgi
• 52,360 points
23,802 views
+5 votes
4 answers

How can I run a Jenkinsfile from a particular folder?

Consider the below points: The Freestyle project ...READ MORE

Mar 27, 2018 in Jenkins by anonymous
23,773 views
+2 votes
1 answer

Error: Reference to undeclared resource in terraform code

Check the vpc declaration in subnets, internet ...READ MORE

Nov 17, 2019 in Other DevOps Questions by ahmed
23,678 views
0 votes
1 answer

How to turn gathering facts task off in Ansible?

Hi@akhtar, You can use gather_facts: no keyword in your playbook. ...READ MORE

Aug 10, 2020 in Ansible by MD
• 95,440 points
23,379 views
+2 votes
3 answers

Cloning the Git Repository on Eclipse (Transport Error)

File/Import... Select dialog * Git/Projects from Git * click next Select ...READ MORE

Jul 23, 2018 in Git & GitHub by Kalgi
• 52,360 points
23,344 views
+7 votes
4 answers

How are ClusterIP, NodePort and LoadBalancer different from each other?

ClusterIP ClusterIP accesses the services through proxy. ClusterIP ...READ MORE

Sep 10, 2018 in Kubernetes by Nilesh
• 7,050 points
23,022 views
0 votes
1 answer

Dockerfile to install apache server and start httpd service on it.

Hey @Kali, That's pretty simple. You could have ...READ MORE

Jan 22, 2019 in Docker by Yesha
22,995 views