How to run jenkins service inside docker container?

+1 vote

Hi Guys,

I installed jenkins inside docker container. But I am not able to start jenkins service using systemctl command. How can I start jenkins service?

May 12 in Docker by akhtar
• 11,270 points
138 views

1 answer to this question.

0 votes

Hi@akhtar,

By default systemctl command will not run inside docker container. But you can start your jenkins service by using the below given commands.

$ /etc/rc.d/init.d/jenkins start
$ service jenkins start

Hope this will help you

answered May 12 by MD
• 24,500 points
When I run first command it shows
No such file or directory
Please help
Hi@Omprakash,

Try with second one. But before that install service software.

Related Questions In Docker

0 votes
1 answer

How to run a docker command from inside the container?

You must have come across the /var/run/docker.sock file, ...READ MORE

answered Jun 28, 2018 in Docker by Sophie may
• 9,940 points
968 views
0 votes
1 answer

How to run a cron job inside a docker container?

Hii, crond works well with tiny on Alpine RUN apk add --no-cache ...READ MORE

answered May 18 in Docker by Niroj
• 23,950 points
42 views
+4 votes
4 answers

How To Access a Service on Host From a Docker Container?

Adding to kalgi's answer, You can also ...READ MORE

answered Oct 16, 2018 in Docker by lina
• 8,200 points

edited Oct 16, 2018 by lina 11,779 views
+2 votes
12 answers
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
• 57,530 points
542 views
0 votes
1 answer

How to run firefox inside docker container?

Hi@akhtar, Generally, if you run firefox inside docker ...READ MORE

answered Apr 16 in Docker by MD
• 24,500 points
480 views
+1 vote
1 answer

How to plot graph inside docker container?

Hi@akhtar, To plot a graph we generally use ...READ MORE

answered May 19 in Docker by MD
• 24,500 points
120 views