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, 2020 in Docker by akhtar
• 38,170 points
2,669 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, 2020 by MD
• 95,060 points

Related Questions In Docker

+3 votes
4 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
10,728 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
• 58,990 points
2,518 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
• 52,290 points
3,076 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
• 52,290 points
239 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
257 views
+6 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,770 points
3,724 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,890 points
927 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, 2020 in Docker by MD
• 95,060 points
818 views