Kong container is not starting on couple of machines

We have a postgres container that is up and running. When we tried to run following migrations command, it just comes out without any logs (even with -v) and exit code as 4.
/bin/docker run --rm --network=postgres-network -e KONG_DATABASE=postgres -e KONG_PG_HOST=postgres-container -e KONG_PG_DATABASE=postgres -e KONG_PG_USER=kong my-kong:2.0.3 kong migrations list

Are there any pointers on what is return code 4 and how I can find what the issue is?