title: Failed to get D-Bus connection - httpd service in Docker container
body: <p>I am creating a Dockerfile for PostgreSQL with CentOS7 as the base image. I am trying to start httpd service with the following command in the container,</p>
  
  <pre><code>service httpd start
  </code></pre>
  
  <p>and i get the following error:</p>
  
  <pre><code>Redirecting to /bin/systemctl start  httpd.service
  Failed to get D-Bus connection: No connection to service manager.
  </code></pre>
  
  <p>The log file directory /var/log/httpd is also empty. I guess this is the problem with Docker CentOS7 image. Any help appreciated.</p>