title: python pdfkit error wkhtmltopdf exited with non-zero code -6
body: <p>I am trying to write an api which takes input as json and gives you response as pdf. For this I am using pdfkit library in python flask.
  I am having trouble deploying it on remote server as docker container. However it works fine on my local machine both with and without docker. I have almost tried all the given solutions online.
  Following is the error which I am receiving</p>
  
  <pre><code>wkhtmltopdf exited with non-zero code -6. error:\nQXcbConnection: Could not connect to display \n
  </code></pre>