title: How to get into psql of a running postgres container?
body: <p>I created a postgres container using the tutorial on the <a href="https://web.archive.org/web/20191019020915/http://www.fig.sh/django.html" rel="noreferrer">fig website</a>. I named the container <strong>db</strong>.</p>
  <p>The container is running and my app connects to it fine. I tried to run the command <code>fig run db psql</code> with the <strong>db</strong> container running and got the error:</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 &quot;/var/run/postgresql/.s.PGSQL.5432&quot;?
  </code></pre>
  <p>How can I get into the <code>psql</code> interface in the running <strong>db</strong> container?</p>