Skip to content

Instantly share code, notes, and snippets.

Last active May 23, 2017 22:52
What would you like to do?
Build, run and connect postgres docker file
mkdir data-load
vi Dockerfile # Copy Docker commands listed above into your local Dockerfile
docker build -t postgres-db .
docker run -d -v /Users/iainhunter/dev/docker/postgres/data-load:/data-loader -p 5432:5432 postgres-db
docker ps
docker exec -it <imageId> bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment