Install jenkins using dockerfile on Ubuntu

0 votes
Instead of pulling a jenkins image from the dockerhub, I wish to create it using the dockerfile. How can I do this?
Aug 22, 2019 in Docker by Liana
5,543 views

1 answer to this question.

0 votes

Here's the dockerfile that you can use:

FROM jenkins:latest
USER root
RUN apt-get update && apt-get install -y build-essential
USER jenkins

You can then build this image using docker image build command.

docker image build [OPTIONS] PATH | URL of your dockerfile

After building the image, run it using docker run command.

answered Aug 22, 2019 by Sirajul
• 59,230 points

Related Questions In Docker

0 votes
1 answer

Dockerfile to install nginx on Ubuntu

Hey @Greg, this is a simple dockerfile ...READ MORE

answered Jul 23, 2019 in Docker by User101
18,000 views
0 votes
1 answer

how to install maven,java{jdk}, jenkins.war file & apache tomcat on dockerfile?

Hi, In real scenario docker container is used ...READ MORE

answered May 4, 2020 in Docker by MD
• 95,440 points
2,040 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

answered Jan 22, 2019 in Docker by Yesha
22,925 views
0 votes
1 answer

How do I install docker on Ubuntu?

Hey @Vijay, Follow these steps: Add the GPG ...READ MORE

answered Feb 22, 2019 in Docker by Sridhar
1,087 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,090 points
2,472 views
+1 vote
1 answer

How do i install jenkins using a dockerfile on a windows container?

Here is to how you can install JENKINS ...READ MORE

answered Aug 22, 2019 in Docker by Sirajul
• 59,230 points
5,861 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP