Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # create container
- docker run --name postgres \
- -e POSTGRES_USERNAME=postgres \
- -e POSTGRES_PASSWORD=postgres1234 \
- -e POSTGRES_DB=elections \
- -p 5432:5432 \
- -d postgres
- # view container
- docker container ls
- # trail container logs
- docker logs postgres --follow
Add Comment
Please, Sign In to add comment