PostgreSQL with Docker

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

  • simplest image - data is lost
  • external volume
  • port mapping.

Running a Transient Instance

docker run posgres

The command will implicitly create a local anonymous volume that will linger around after the container stops. The data on the anonymous local volume can be accessed by starting the stopped container.