Tej_Singh_Rana:
Hello, @Lokesh Sai
please have a look at volumeMounts. Path is not looks correct.
volumeMounts:
- name: jenkins-volume
mountPath: var/jenkins_home
I think it should be /var/jenkins_home
. You missed slash.
Tej_Singh_Rana:
Hello, @Lokesh Sai
please have a look at volumeMounts. Path is not looks correct.
volumeMounts:
- name: jenkins-volume
mountPath: var/jenkins_home
I think it should be /var/jenkins_home
. You missed slash.
Tej_Singh_Rana:
One more error is, not able to pull the jenkins image.
Lokesh Sai:
yes
Lokesh Sai:
actually i need to store the jenkins jobs in my localhost using host volume
Basavraj Nilkanthe:
@Lokesh Sai Do we have specific image called as jenkins??
Tej_Singh_Rana:
installed docker or ?
Basavraj Nilkanthe:
You can try with adding slash and let us know
Tej_Singh_Rana:
that’s not the issue.
Lokesh Sai:
@Basavraj Nilkanthe /@Tej_Singh_Rana apiVersion: v1
kind: Pod
metadata:
name: jenkins-pod
spec:
containers:
Tej_Singh_Rana:
that’s not the case. Main issue is, it’s not able to pull the image.
Tej_Singh_Rana:
run the command in the terminal
Tej_Singh_Rana:
docker pull nginx
Basavraj Nilkanthe:
Ok
Tej_Singh_Rana:
what is the o/p of the above command? able to pull?
Tej_Singh_Rana:
We have to add image jenkins/jenkins,
docker pull jenkins/jenkins