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:
- name: jenkins
image: jenkins
volumeMounts:- name: jenkins-volume
mountPath: /var/jenkins_home
volumes:
- name: jenkins-volume
- name: jenkins-volume
hostPath:
path: /var/jenkins
type: Directory
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
Tej_Singh_Rana:
this one is deprecated:
docker pull jenkins