Installed postgres 12 image in microsoft azure and trying to connect to database

Expected behavior

Actual behavior

Additional Information

Steps to reproduce the behavior

  1. deploy postgres 12 image in Azure
  2. connect to the container using power shell
  3. kubectl exec -n dependency-track postgres-sql-dcbbff476-f9h5r -it – bash
  4. login to database as postgres user : psql -U postgres
  5. error : psql: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: role “postgres” does not exist

Please share how step 1 is done exactly. The kubectl command in step 3 indicates that you deployed the container on Kubernetes, not on Docker.