Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (2.3k points)

I have been trying to run this command:

[email protected]:/Linux_Insight_Agent# systemctl start ir_agent.service

But it gives me this error:

Failed to connect to bus: No such file or directory

1 Answer

0 votes
by (6.9k points)

The issue is happening because Systemctl will talk to systemd daemon by making the use of d-bus, but inside your container systemd daemon is not present . So what you are doing will not give you what you are exactly looking for. You need to have a longer dev-mapping

OR you need to just entirely avoid using systemd daemon by making use of docker-systemctl-replacement script. This will overwrite default systemctl.


Become more adept at working with docker by starting your first class in docker training course.

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...