title: Start service using systemctl inside docker container
body: <p>In my Dockerfile I am trying to install multiple services and want to have them all start up automatically when I launch the container. 
  One among the services is mysql  and when I launch the container I don't see the mysql service starting up. When I try to start manually, I get the error:
  <code>Failed to get D-Bus connection: Operation not permitted</code></p>
  
  <p>Dockerfile:</p>
  
  <pre><code>FROM centos:7
  
  RUN yum -y install mariadb mariadb-server
  
  COPY start.sh start.sh
  
  CMD ["/bin/bash", "start.sh"]
  </code></pre>
  
  <p>My start.sh file: </p>
  
  <pre><code>service mariadb start
  </code></pre>
  
  <p>Docker build:</p>
  
  <pre><code>docker build --tag="pbellamk/mariadb" .
  </code></pre>
  
  <p>Docker run:</p>
  
  <pre><code>docker run -it -d --privileged=true pbellamk/mariadb bash
  </code></pre>
  
  <p>I have checked the <code>centos:systemd</code> image and that doesn't help too. How do I launch the container with the services started using systemctl/service commands.</p>