Skip to content

Instantly share code, notes, and snippets.

@Rishabh04-021
Rishabh04-021 / psql-setup-docker.md
Last active December 23, 2019 05:47 — forked from ChakshuGautam/psql-setup-docker.sh
PSQL Docker setup - Cheatbook

Setup docker engine

-p 127.0.0.1:5432:5432 instead of -p 5432:5432. If you don’t explicitly tell it to run on localhost, it’ll run on0.0.0.0 which means other folks on the same network will be able to reach it. https://hub.docker.com/_/postgres => Gives a lot of info regarding docker secrets which should be the way forward.

docker pull postgres

OR for a specifig version

docker pull postgres:10