-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
questionUsability question, not directly related to an error with the imageUsability question, not directly related to an error with the image
Description
To wait for a postgres container to be "ready", I've been using a script like this:
# Wait for PG to be ready
until $PSQL -c "select version()" &> /dev/null
do
echo "waiting for postgres container..."
sleep 2
done
But it seems even this is too early. Is there any unequivocal way that another container can tell once the postgres container is ready to be provisioned, without resorting to more arbitrary wait timers?
traday, pwaller, jjzabkar, gonimar, gogiel and 7 more
Metadata
Metadata
Assignees
Labels
questionUsability question, not directly related to an error with the imageUsability question, not directly related to an error with the image