Explore Courses Blog Tutorials Interview Questions
0 votes
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.

Browse Categories