Error starting docker postgres on travis-
It seems that Postgres service is enabled by default in Travis CI.
So you could :
- Try to disable the Postgres service in your Travis config. See How to stop services on Travis CI running by default?. See also https://docs.travis-ci.com/user/database-setup/#PostgreSQL .
Or
- Map your postgres container to another host port (!= 5432). Like
-p 5455:5432
.
It could also be useful to check if the service is already running : Check If a Particular Service Is Running on Ubuntu
Do you use Travis' Postgres?
services: - postgresql
Would be easier if you provide travis.yml