FATAL: role "root" does not exist ? Docker

Viewed 53

I run docker container with following command

docker run --name postgres14 -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=pass -d postgres:14-alpine

And I want to connect to my Postgres database and get error

FATAL:  role "root" does not exist

My connection to db:

enter image description here

How to connect to my db?

1 Answers

Ok , this issue occurs only in Mac m1. Solution is run port 5433:5432

Related