title: systemctl command doesn't work inside docker-container
body: <p>I've made a Docker image for my spring boot application. I'm unable to run systemctl command inside the Docker container. This is what I get when I execute</p>
  
  <p><code>systemctl daemon reload</code> :-</p>
  
  <pre><code>Failed to connect to bus: No such file or directory
  </code></pre>
  
  <p>Steps I followed to build the Docker image :-</p>
  
  <p>1) <code>docker build --rm -t &lt;IMAGE_NAME&gt; .</code></p>
  
  <p>2) <code>docker-compose up</code></p>
  
  <p>3) <code>docker exec -it &lt;CONTAINER_NAME&gt; bash</code></p>
  
  <p>When I start a service using :-</p>
  
  <p><code>service &lt;SERVICE_NAME&gt; start</code></p>
  
  <p>I get unrecognised service. How do I execute a service inside docker?</p>