Skip to content

Instantly share code, notes, and snippets.

@brijesh-deb
Created January 23, 2018 04:33
Show Gist options
  • Save brijesh-deb/6c8fd899ab7a33655f55c5b18cff0124 to your computer and use it in GitHub Desktop.
Save brijesh-deb/6c8fd899ab7a33655f55c5b18cff0124 to your computer and use it in GitHub Desktop.
#docker #postgres

Install Postgres on Docker

  • On docker host run following commands
    • docker pull postgres:latest
    • docker run -p 5432:5432 --name sample -e POSTGRES_PASSWORD=admin123 -d postgres
  • Access postgres using local pgadmin
    • Host: public ip of ec2
    • Post: 5432
    • User:postgres
    • Password:admin123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment