title: List docker database with local databases
body: <p>i have two docker containers running, following the instructions given here: <a href="https://github.com/swri-robotics/bag-database" rel="nofollow noreferrer">https://github.com/swri-robotics/bag-database</a>. </p>
  
  <p>I can now look at the database in the browser using: localhost:8080, so it's set up properly and running fine. </p>
  
  <p>So my question is, how can I get the other container that is running on port 5432 to list the database with all the other databases that I have locally using psql - l? 
  Right now I can only look at it if I open the container first. </p>
  
  <p>I run it like this:</p>
  
  <p>docker run -d -p 5432:5432 --name bagdb-postgres -v /var/lib/bagdb-postgres:/var/lib/postgresql/data -h 127.0.0.1 -e POSTGRES_PASSWORD=password -e POSTGRES_USER=user -e POSTGRES_DB=bag_database mdillon/postgres:lastest</p>
  
  <p>Thanks! </p>