I want to create one cluster of Jenkins. So I am trying to implement this task on Docker. Can anyone help me, how can I create Jenkins image?
You can pull Jenkins image from docker hub. But if you want to create a customize image of Jenkins, you can use Dockerfile. Here I have attached one Dockerfile for your reference.
RUN yum install wget -y
RUN yum install java-11-openjdk.x86_64 -y
RUN wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
RUN rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
RUN yum install jenkins -y
RUN yum install /usr/sbin/service -y
RUN yum install sudo -y
RUN echo "jenkins ALL=(ALL) NOPASWD: ALL" >> /etc/sudoers
RUN yum install iptables -y
ENTRYPOINT service jenkins restart && bash
Hope this will help.
Apparently, the problem would be in your ...READ MORE
kubectl get storageclass gives output as ...READ MORE
Look for what all images you have ...READ MORE
You can use docker load command inorder to get ...READ MORE
When you use docker-compose down, all the ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
It can work if you try to put ...READ MORE
To solve this problem, I followed advice ...READ MORE
There are two ways to create docker ...READ MORE
You can create local yum inside docker. ...READ MORE
Already have an account? Sign in.