I’m trying to build EHRBase image from Docker . Seems to be throwing error when i run " docker run ehrbaseorg/ehrbase".
Errors are mentioned below:
org.postgresql.util.PSQLException: The connection attempt failed.
Error creating bean with name ‘flywayInitializer’ defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.exception.FlywaySqlException:
Unable to obtain connection from database: The connection attempt failed.
3.Caused by: java.net.UnknownHostException: ehrdb
Please let me know what I’m missing.