삽질
postgres with docker compose gives FATAL: role "root" does not exist error
llshl
2023. 4. 20. 18:35
반응형
docker의 postgres에서 psql로 접속하려했더니 위와같은 권한에러가 발생했다.
docker compose yml에서 docker-compose up 할 때
environment:
# PostgreSQL 계정 및 패스워드 설정 옵션
PGUSER: my-user
이처럼 키값을 PSUSER로 설정해줘야한다
원래는 POSTGRES_USER였음
postgres with docker compose gives FATAL: role "root" does not exist error
I'm trying to create a simple demo with postgres on a local windows machine with docker desktop. This is my yaml docker compose file named img.yaml: version: '3.6' services: postgres-demo: ...
stackoverflow.com
반응형