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