title: Docker how to add volume to a running container?
body: <p>I got a PostgreSQL instance running in a ubuntu docker container. I put the database dir in a volume which is also shared with the host system by running:</p>
  
  <pre><code>sudo docker run -d -p 10001:5432 -v ~/logs/postgres:/var/log -v ~/postgres-data:/var/lib/postgresql/data --name db postgresql
  </code></pre>
  
  <p>However, the <code>/var/lib/postgresql/data</code> is becoming bigger and the host system is running out of space. Is there any way I can add additional volume to a running container? So I can create a table space in PG (<a href="http://www.postgresql.org/docs/9.3/static/manage-ag-tablespaces.html" rel="nofollow">http://www.postgresql.org/docs/9.3/static/manage-ag-tablespaces.html</a>)? Or any other alternatives?</p>