Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.35 KB

File metadata and controls

26 lines (18 loc) · 1.35 KB

docker-postgres-db

DOWNLOAD POSTGRES IMAGE

docker pull postgres

  • wait for the pull to be successful and complete
  • Now youll see an image in DOcker Desktop with name "postgres"
  • In Docker Desktop : Click on Run on that Image, and Give a container name(postgres-db), set host port(use same as it shows i.e 5432), In Environment Variables (enter POSTGRES_PASSWORD = password(or your own password))
  • In Terminal :

    docker run --name postgres-db -e POSTGRES_PASSWORD=password -d postgres

In SQL Developer:

connection string

username: postgres, password: password, host: localhost, port: 5432