Last active
May 23, 2017 22:52
-
-
Save hunt3ri/f86c2d41b2dbc87af7b6e2dbd05682c3 to your computer and use it in GitHub Desktop.
Build, run and connect postgres docker file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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