Files
dockerfiles/postgres
Qi Zheng 3259d3bab3 Use su-exec to run commands on entryponit
With su-exec, make sure the SIGTERM upon docker stop
could be received by the running program thus causing
a clean stop/exit.

Signed-off-by: Qi Zheng <qi.zheng@intel.com>
2019-07-23 15:47:45 -07:00
..

PostgreSQL

This provides a Clear Linux* PostgreSQL instance.

Build

docker build -t clearlinux/postgres .

Or just pull it from Dockerhub

docker pull clearlinux/postgres

Start PostgreSQL Container

docker run -p 5432:5432 -e POSTGRES_PASSWORD=secret -d clearlinux/postgres

Environment Variables

  • See Environment Variables section of the official postgres image page.

Extra Build ARGs

  • swupd_args Specifies SWUPD flags

Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#arg