Failed to get D-Bus connection: Operation not permitted.

0 votes

Hi Guys,

I am trying to start httpd service inside Docker Container. But it is showing me the below error.

How can I solve this error?

Jun 22 in Docker by akhtar
• 17,690 points
273 views

1 answer to this question.

0 votes

Hi@akhtar,

Service command will not work inside the Docker container. You have to do some settings in your container. But you can start your httpd server by using the below-given command.

$ /usr/sbin/httpd

I hope this will help you.

answered Jun 22 by MD
• 40,740 points

Related Questions In Docker

+3 votes
3 answers

Not able to connect worker nodes to the swarm. Connection refused error

This definitely has to be a firewall issue. ...READ MORE

answered Apr 26, 2019 in Docker by Vaidya
8,344 views
0 votes
1 answer

Why do I get Connection reset by peer when making a request to a service running in a container?

Typically, this message is returned if the ...READ MORE

answered Jul 9, 2019 in Docker by Sirajul
• 55,220 points
1,723 views
0 votes
1 answer

How to get docker-compose to always re-create containers from fresh images?

The containers are getting recreated to preserve ...READ MORE

answered Jul 27, 2018 in Docker by Kalgi
• 51,890 points
1,896 views
0 votes
1 answer

Docker, how to get container information from within the container?

I've found out that the container id ...READ MORE

answered Jul 31, 2018 in Docker by Kalgi
• 51,890 points
162 views
0 votes
1 answer
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
158 views
+5 votes
17 answers

What are job opportunities as a Linux System Administrator?

I just started working professionally as a ...READ MORE

answered Jul 18, 2018 in Career Counselling by eatcodesleeprepeat
• 4,750 points
1,897 views
0 votes
1 answer

setting a variable output from a bash command

You can use $(command), which in my ...READ MORE

answered Feb 15, 2019 in Linux Administration by DareDev
• 6,850 points
563 views
0 votes
1 answer

Failed to start podman.service: Unit podman.service not found.

Hi@akhtar, Before starting Podman service, you have to ...READ MORE

answered Apr 20 in Docker by MD
• 40,740 points
180 views