I have a bash shell script which does a bunch of stuff before trying to mongorestore.
mongorestore
I want to make sure that not only MongoDB is up, but it is also re
Given the docker_id for me it works reading the docker logs like:
docker_id
docker logs
until [ $(docker logs --tail all $docker_id | grep "waiting for connections on port" | wc -l) -gt 0 ]; do printf '.' sleep 1 done
then continue with any mongo-dependent task.