I\'m trying to start postgres in a docker container on my Mac, but I keep getting the following error message
docker: Error response from da
The first thing you should do is stop PostgreSQL service. In most cases it fixed the issue.
sudo service postgresql stop
If above doesn't work. then add the following line to /etc/postgresql/12/main/postgresql.conf
sudo vim /etc/postgresql/12/main/postgresql.conf
## good if you add under CONNECTION AND AUTHENTICATION comments
listen_addresses = "*"