PostgreSQL with Docker: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 5: Line 5:
=Overview=
=Overview=


A transient Posgres container instance can be started and exposed on a local host port as shown in the section.
A transient Posgres container instance can be started and exposed on a local host port as shown in the [[#Running_a_Transient_Instance|Running a Transient Instance]] section.


<font color=darkgray>
<font color=darkgray>

Revision as of 16:54, 18 October 2018

Internal

Overview

A transient Posgres container instance can be started and exposed on a local host port as shown in the Running a Transient Instance section.

  • 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.