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,153 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,180 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,081 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,044 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
32,815 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,632 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,555 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,907 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,616 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,205 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
29,983 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,298 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,031 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,834 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,558 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,481 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,466 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,438 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,197 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,160 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,491 views
+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,478 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,433 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,387 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,383 views
+1 vote
1 answer
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,308 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,106 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
26,950 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,845 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,743 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,372 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,200 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,044 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,596 views
0 votes
4 answers
+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,436 views
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,350 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,186 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,092 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,003 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
23,887 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,690 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,610 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,604 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,202 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,092 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
22,945 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,921 views