News for hackers. Stuff that matters.
Re:PostgreSQL Performance on Docker by wmf on Wednesday July 09, 2014 @05:53PM (#8012448)
Even ignoring performance, putting persistent data (like databases) on volumes is a best practice since the normal filesystem inside the container is ephemeral.
Re:PostgreSQL Performance on Docker by dsissitka on Wednesday July 09, 2014 @09:51PM (#8013174)
"...since the normal filesystem inside the container is ephemeral."

Not by default:

  # docker run -i -t ubuntu bash
  root@48dbef418f4c:/# echo foo > /bar
  root@48dbef418f4c:/# exit
  # docker restart 48dbef418f4c
  48dbef418f4c
  # docker attach 48dbef418f4c
  root@48dbef418f4c:/# cat /bar
  foo
  root@48dbef418f4c:/#
Docker won't delete a container unless you tell it to.