After installing the CloudBeaver as a Docker instance, I was trying to connect to the Postgres instance which I was running on my local machine.

In the HOST field, I tried with localhost which obviously wouldn’t work since that refers to the VM itself.

After some searching I found that to connect to the host, I need to set the connection as

host.docker.internal