How can I install systemctl tool in Docker container?

0 votes

Hi,

I tried to use systemctl tool in Docker, But the command to install systemctl tool is not working.

$ yum install systemctl
$ bash:systemctl: No such file

I have the rpm in my container, but still I am getting error.

Thank You 

Feb 5 in Docker by akhtar
• 1,440 points
43 views

1 answer to this question.

0 votes

Hi@akhtar,

In docker container if you want to install any tool, then you have to give the file path. For systemctl tool you can check first which file provides the tool.

Now you can install systemctl using the below command.

$ yum install /usr/bin/systemctl

Hope this will work.

Thank You

answered Feb 5 by MD
• 2,750 points

Related Questions In Docker

0 votes
1 answer
+1 vote
12 answers
0 votes
1 answer
0 votes
1 answer

How do I install phantomjs with node in docker

Here is what you can try. Link for existing ...READ MORE

answered Aug 1, 2018 in Docker by Damon Salvatore
• 5,520 points
940 views
0 votes
1 answer

How do I scale in Docker Swarm Mode W/Terraform Digital Ocean Load Balancing

The solution you could build for Digital ...READ MORE

answered Jun 19, 2018 in Docker by shubham
• 6,910 points
300 views
0 votes
2 answers

How to edit file after I shell to a docker container?

You can even install it using a ...READ MORE

answered Apr 23, 2019 in Docker by Ashish
4,682 views
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
368 views