title: Installing PostgreSQL within a docker container
body: <p>I've been following several different tutorials as well as the official one however whenever I try to install PostgreSQL within a container I get the following message afterwards</p>
  
  <pre><code>psql: could not connect to server: No such file or directory
  Is the server running locally and accepting
  connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
  </code></pre>
  
  <p>I've looked through several questions here on SO and throughout the internet but no luck.</p>