Я использую контейнер докеров для подключения подключения postgres с моего локального компьютера к докеру для импорта данных открытой карты улиц. Но я получаю ошибку аутентификации для пользователя.
docker run --name "postgis" -p 5432:5432 -d -t kartoza/postgis:11.5-2.8
мой файл pg_hba.conf
# TYPE DATABASE USER ADDRESS METHOD
# IPv4 local connections:
host all all 172.17.0.1/16 md5
host all all 0.0.0.0/0 md5
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
host replication all 127.0.0.1/32 md5
host replication all 172.17.0.1/16 md5
host replication all ::1/128 md5
Я тоже изменил md5 to trust
, но все еще сталкиваюсь с проблемой ниже.
2020-10-14 04:56:53.055 UTC [166] postgres@gis FATAL: password authentication failed for user "postgres"
2020-10-14 04:56:53.055 UTC [166] postgres@gis DETAIL: User "postgres" has no password assigned.
Connection matched pg_hba.conf line 100: "host all all 172.0.0.0/8 md5"
и моя версия postgres - 11.9, клиент - 11.8, а IP - "IPv4Address": "172.17.0.2/16"
Как я могу решить, пожалуйста, предложите мне
docker ps
- person GintsGints   schedule 14.10.2020