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 in Docker by Liana
286 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 by Sirajul
• 38,820 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 in Docker by User101
359 views
0 votes
1 answer
0 votes
1 answer

How do I install docker on Ubuntu?

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

answered Feb 21 in Docker by Sridhar
145 views
0 votes
1 answer
0 votes
1 answer
0 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
• 56,940 points
228 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 in Docker by Sirajul
• 38,820 points
257 views