Skip to content

Docker default network subnet compatibility #1316

Open
@kamyarghajar

Description

@kamyarghajar

On Docker Desktop on macOS, the default docker subnet is set to 192.168.65.0/24, but the pg_hba.conf is configured to allow 172.17.0.0/16 as follows:

host all all 172.17.0.0/16 md5

This is raising the exception "no pg_hba.conf entry for host 192.168.65.1" when trying to connect login to Postgres. Shouldn't it change to be compatible with the default docker subnet mask?

Docker Desktop version: 4.38.0 (the issue is not there on 4.37.2 and earlier)
Postgres: 15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions