I was running a linux container and trying to connect via DBeaver (on my windows machine) to no avail. I finally realized there was a PGadmin service running as a windows service. Once I shut that service down, I had no issues connecting to my container postgres instance via DBeaver. I thought to share in case any of you had that issue and could potentially save you some time.