When looking at the logs of “local-mongo-0”, I saw a warning:
WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!
see https://jira.mongodb.org/browse/SERVER-54407
see also https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610/2
see also https://github.com/docker-library/mongo/issues/485#issuecomment-891991814
I thought it was just a warning and not an error, but it turns out that the mongodb container did not start because of that!
For context, I was running this in a VM with no AVX support. Once I changed the CPU options to support AVX it started working with no issues!