/docker-build-postgresql

Environment Debian, PostgreSQL 9.5

Primary LanguageShell

Debian, PostgreSQL 9.5

To build execute:

docker build -t postgresql:9.5 .

Lauching a container from your new image:

docker run -d -P --name postgresql95 postgresql:9.5

Binding to a specific port:

docker run -d -p 5433:5432 --name postgresql95 postgresql:9.5

Bind mount a volume:

docker run -d -v /home/user/workspace/scripts/:/ postgresql:9.5

Access a shell after run container:

docker exec -it [ CONTAINER ID ] bash

CHANGELOG

Link