Guest User

Untitled

a guest
Mar 31st, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. # create container
  2. docker run --name postgres \
  3. -e POSTGRES_USERNAME=postgres \
  4. -e POSTGRES_PASSWORD=postgres1234 \
  5. -e POSTGRES_DB=elections \
  6. -p 5432:5432 \
  7. -d postgres
  8.  
  9. # view container
  10. docker container ls
  11.  
  12. # trail container logs
  13. docker logs postgres --follow
Add Comment
Please, Sign In to add comment